pub trait AsyncFnMut<Args>:AsyncFnOnce<Args>where Args:Tuple,{ typeCallRefFuture<'a>:Future<Output = Self::Output>where Self: 'a; // Required method extern "rust-call" fnasync_call_mut( &mut self, args: Args, ) -> Self::CallRefFuture<'_>;}Expand description
An async-aware version of theFnMut trait.
Allasync fn and functions returning futures implement this trait.
Required Associated Types§
SourcetypeCallRefFuture<'a>:Future<Output = Self::Output>where Self: 'a
🔬This is a nightly-only experimental API. (async_fn_traits)
typeCallRefFuture<'a>:Future<Output = Self::Output>where Self: 'a
async_fn_traits)Future returned byAsyncFnMut::async_call_mut andAsyncFn::async_call.
Required Methods§
Sourceextern "rust-call" fnasync_call_mut( &mut self, args: Args,) -> Self::CallRefFuture<'_>
🔬This is a nightly-only experimental API. (async_fn_traits)
extern "rust-call" fnasync_call_mut( &mut self, args: Args,) -> Self::CallRefFuture<'_>
async_fn_traits)Call theAsyncFnMut, returning a future which may borrow from the called closure.
Dyn Compatibility§
This trait isnotdyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.