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§
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