Trait specs::storage::Tracked

source ·
pub trait Tracked {
    // Required methods
    fn channel(&self) -> &EventChannel<ComponentEvent>;
    fn channel_mut(&mut self) -> &mut EventChannel<ComponentEvent>;
    fn set_event_emission(&mut self, emit: bool);
    fn event_emission(&self) -> bool;
}
Expand description

UnprotectedStorages that track modifications, insertions, and removals of components.

Required Methods§

source

fn channel(&self) -> &EventChannel<ComponentEvent>

Event channel tracking modified/inserted/removed components.

source

fn channel_mut(&mut self) -> &mut EventChannel<ComponentEvent>

Mutable event channel tracking modified/inserted/removed components.

source

fn set_event_emission(&mut self, emit: bool)

Controls the events signal emission. When this is set to false the events modified/inserted/removed are not emitted.

source

fn event_emission(&self) -> bool

Returns the actual state of the event emission.

Implementors§

source§

impl<C, T> Tracked for DerefFlaggedStorage<C, T>

source§

impl<C, T> Tracked for FlaggedStorage<C, T>