ComponentState

Trait ComponentState 

Source
pub trait ComponentState<C>: Sized {
    // Required method
    fn spawn_watchers(&self, spawner: &mut WatchersSpawner<Self, C>);
}
Expand description

Abstraction describing state of the Component.

Required Methods§

Source

fn spawn_watchers(&self, spawner: &mut WatchersSpawner<Self, C>)

Spawns all watchers required for this ComponentState.

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§