Trait AsyncStateful

Source
pub trait AsyncStateful<S: StateSpec>: Clone {
    // Required methods
    fn state(&self) -> Shared<S>;
    fn update_state(&mut self, state: Shared<S>);
}

Required Methods§

Source

fn state(&self) -> Shared<S>

Source

fn update_state(&mut self, state: Shared<S>)

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§