Struct armature::Store [−][src]
pub struct Store<T, E> where
T: Default + Clone + Debug,
E: IsEvent<Event = E>, { pub value: T, pub on_mutate: fn(_: &Self), // some fields omitted }
Fields
value: T
on_mutate: fn(_: &Self)
Implementations
Trait Implementations
type Event = E
Get a mutable reference to the event sender component.
Get an immutable reference to the event sender component.
Set the event sender component.
Get the event sender
Set the event sender
Clear the event sender
Get associated event handler id, this is the id of the event handler that owns the event sender. Read more
Get the associated event handler id.
Clear the associated event handler id.
Post an event to event handler to which the event sender is attached.
Auto Trait Implementations
impl<T, E> !RefUnwindSafe for Store<T, E>
impl<T, E> !UnwindSafe for Store<T, E>
Blanket Implementations
Mutably borrows from an owned value. Read more