Trait no_std_compat::ops::AsyncFnMut
source · pub trait AsyncFnMut<Args>: AsyncFnOnce<Args>where
Args: Tuple,{
type CallRefFuture<'a>: Future<Output = Self::Output>
where Self: 'a;
// Required method
extern "rust-call" fn async_call_mut(
&mut self,
args: Args,
) -> Self::CallRefFuture<'_>;
}
🔬This is a nightly-only experimental API. (
async_fn_traits
)Expand description
An async-aware version of the FnMut
trait.
All async fn
and functions returning futures implement this trait.
Required Associated Types§
sourcetype CallRefFuture<'a>: Future<Output = Self::Output>
where
Self: 'a
🔬This is a nightly-only experimental API. (async_fn_traits
)
type CallRefFuture<'a>: Future<Output = Self::Output> where Self: 'a
async_fn_traits
)Future returned by AsyncFnMut::async_call_mut
and AsyncFn::async_call
.
Required Methods§
sourceextern "rust-call" fn async_call_mut(
&mut self,
args: Args,
) -> Self::CallRefFuture<'_>
🔬This is a nightly-only experimental API. (async_fn_traits
)
extern "rust-call" fn async_call_mut( &mut self, args: Args, ) -> Self::CallRefFuture<'_>
async_fn_traits
)Call the AsyncFnMut
, returning a future which may borrow from the called closure.
Object Safety§
This trait is not object safe.