Enum specs::storage::ComponentEvent
source · Expand description
Component storage events received from a FlaggedStorage
or any storage that implements
Tracked
.
Variants
Inserted(Index)
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(Index)
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(Index)
A removal event.
Trait Implementations
sourceimpl Clone for ComponentEvent
impl Clone for ComponentEvent
sourcefn clone(&self) -> ComponentEvent
fn clone(&self) -> ComponentEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ComponentEvent
impl Debug for ComponentEvent
impl Copy for ComponentEvent
Auto Trait Implementations
impl RefUnwindSafe for ComponentEvent
impl Send for ComponentEvent
impl Sync for ComponentEvent
impl Unpin for ComponentEvent
impl UnwindSafe for ComponentEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more