Trait AsyncFnMut
#[must_use = "async closures are lazy and do nothing unless called"]
pub trait AsyncFnMut<Args: Tuple>: AsyncFnOnce<Args>
An async-aware version of the FnMut trait.
All async fn and functions returning futures implement this trait.
Associated Types
type CallRefFuture<'a>: Future<Output = Self::Output>;Future returned by
AsyncFnMut::async_call_mutandAsyncFn::async_call.
Required Methods
extern ""rust-call"" fn async_call_mut(&mut self, args: Args) -> Self::CallRefFuture<'_>Call the
AsyncFnMut, returning a future which may borrow from the called closure.
Implementors
impl<A: Tuple, F> AsyncFnMut<A> for &F where F: AsyncFn<A> + ?Sized,impl<A: Tuple, F> AsyncFnMut<A> for &mut F where F: AsyncFnMut<A> + ?Sized,impl<F, Args> AsyncFnMut<Args> for SyncView<F> where F: AsyncFnMut<Args>, Args: Tuple,