Movatterモバイル変換


[0]ホーム

URL:


AsyncFnOnce

std::ops

TraitAsyncFnOnce 

1.85.0 ·Source
pub trait AsyncFnOnce<Args>
where Args:Tuple,
{ typeCallOnceFuture:Future<Output = Self::Output>; typeOutput; // Required method extern "rust-call" fnasync_call_once( self, args: Args, ) -> Self::CallOnceFuture;}
Expand description

An async-aware version of theFnOnce trait.

Allasync fn and functions returning futures implement this trait.

Required Associated Types§

Source

typeCallOnceFuture:Future<Output = Self::Output>

🔬This is a nightly-only experimental API. (async_fn_traits)

Future returned byAsyncFnOnce::async_call_once.

Source

typeOutput

🔬This is a nightly-only experimental API. (async_fn_traits)

Output type of the called closure’s future.

Required Methods§

Source

extern "rust-call" fnasync_call_once( self, args: Args,) -> Self::CallOnceFuture

🔬This is a nightly-only experimental API. (async_fn_traits)

Call theAsyncFnOnce, returning a future which may move out of the called closure.

Implementors§

1.85.0 ·Source§

impl<'a, A, F>AsyncFnOnce<A> for&'a F
where A:Tuple, F:AsyncFn<A> + ?Sized,

1.85.0 ·Source§

impl<'a, A, F>AsyncFnOnce<A> for&'a mut F
where A:Tuple, F:AsyncFnMut<A> + ?Sized,

1.85.0 ·Source§

impl<Args, F, A>AsyncFnOnce<Args> forBox<F, A>
where Args:Tuple, F:AsyncFnOnce<Args> + ?Sized, A:Allocator,


[8]ページ先頭

©2009-2026 Movatter.jp