pub struct ObserverTrigger {
pub observer: Entity,
pub event_type: ComponentId,
pub entity: Entity,
}
Expand description
Event trigger metadata for a given Observer
,
Fields§
§observer: Entity
The Entity
of the observer handling the trigger.
event_type: ComponentId
The ComponentId
the trigger targeted.
entity: Entity
The entity the trigger targeted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObserverTrigger
impl RefUnwindSafe for ObserverTrigger
impl Send for ObserverTrigger
impl Sync for ObserverTrigger
impl Unpin for ObserverTrigger
impl UnwindSafe for ObserverTrigger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more