Skip to main content

ThreadAwareAsyncFnMut

Trait ThreadAwareAsyncFnMut 

Source
pub trait ThreadAwareAsyncFnMut<T>: ThreadAware {
    // Required method
    fn call_mut(&mut self) -> BoxFuture<'_, T>;
}
Expand description

Async equivalent of ThreadAwareFnMut - calls the closure by mutable reference, returning a BoxFuture.

Use async_closure_mut to construct an implementation.

Required Methods§

Source

fn call_mut(&mut self) -> BoxFuture<'_, T>

Calls the async closure by mutable reference.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§