pub enum Event<E: Entity> {
Create(E),
Update {
id: E::ID,
update: E::Update,
},
Delete(E::ID),
}Variants§
Trait Implementations§
Source§impl<S: Singleton> From<Event<SingletonEntity<S>>> for SingletonEvent<S>
impl<S: Singleton> From<Event<SingletonEntity<S>>> for SingletonEvent<S>
Source§fn from(value: Event<SingletonEntity<S>>) -> Self
fn from(value: Event<SingletonEntity<S>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for Event<E>
impl<E> RefUnwindSafe for Event<E>
impl<E> Send for Event<E>
impl<E> Sync for Event<E>
impl<E> Unpin for Event<E>
impl<E> UnwindSafe for Event<E>
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