pub enum ComponentEvent {
Inserted(u32),
Modified(u32),
Removed(u32),
}Expand description
Component storage events received from a FlaggedStorage or any storage that implements
Tracked.
Variants§
Inserted(u32)
An insertion event, note that a modification event will be triggered if the entity already had a component and had a new one inserted.
Modified(u32)
A modification event, this will be sent any time a component is accessed mutably so be
careful with joins over &mut storages as it could potentially flag all of them.
Removed(u32)
A removal event.
Trait Implementations§
Source§impl Clone for ComponentEvent
impl Clone for ComponentEvent
Source§fn clone(&self) -> ComponentEvent
fn clone(&self) -> ComponentEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentEvent
impl Debug for ComponentEvent
impl Copy for ComponentEvent
Auto Trait Implementations§
impl Freeze for ComponentEvent
impl RefUnwindSafe for ComponentEvent
impl Send for ComponentEvent
impl Sync for ComponentEvent
impl Unpin for ComponentEvent
impl UnwindSafe for ComponentEvent
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