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_mut and AsyncFn::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