StateAsyncGetMut

Trait StateAsyncGetMut 

Source
pub trait StateAsyncGetMut: State {
    // Required method
    fn get_mut<T: 'static + Send + Sync>(
        &self,
    ) -> impl Future<Output = Option<impl DerefMut<Target = T>>> + Send;
}
Expand description

Get data mutably (async immutable version)

Required Methods§

Source

fn get_mut<T: 'static + Send + Sync>( &self, ) -> impl Future<Output = Option<impl DerefMut<Target = T>>> + Send

Gets data of type T mutably

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§