pub struct PropertyChangeEvent<E: Entity, P: Property<E>> {
pub entity_id: EntityId<E>,
pub current: P,
pub previous: P,
}Expand description
Emitted when a property is updated. These should not be emitted outside this module.
Fields§
§entity_id: EntityId<E>The EntityId<E> that changed
current: PThe new value
previous: PThe old value
Trait Implementations§
Source§impl<E: Entity, P: Property<E>> IxaEvent for PropertyChangeEvent<E, P>
impl<E: Entity, P: Property<E>> IxaEvent for PropertyChangeEvent<E, P>
Source§fn on_subscribe(_context: &mut Context)
fn on_subscribe(_context: &mut Context)
Called every time
context.subscribe_to_event is called with this eventimpl<E: Entity, P: Property<E>> Copy for PropertyChangeEvent<E, P>
Auto Trait Implementations§
impl<E, P> Freeze for PropertyChangeEvent<E, P>where
P: Freeze,
impl<E, P> RefUnwindSafe for PropertyChangeEvent<E, P>where
P: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, P> Send for PropertyChangeEvent<E, P>
impl<E, P> Sync for PropertyChangeEvent<E, P>
impl<E, P> Unpin for PropertyChangeEvent<E, P>
impl<E, P> UnwindSafe for PropertyChangeEvent<E, P>where
P: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.