pub enum SingletonEvent<S: Singleton> {
Create(S),
Update(S::Update),
Delete,
}Variants§
Trait Implementations§
Source§impl<S: Clone + Singleton> Clone for SingletonEvent<S>
impl<S: Clone + Singleton> Clone for SingletonEvent<S>
Source§fn clone(&self) -> SingletonEvent<S>
fn clone(&self) -> SingletonEvent<S>
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<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<S> Freeze for SingletonEvent<S>
impl<S> RefUnwindSafe for SingletonEvent<S>
impl<S> Send for SingletonEvent<S>
impl<S> Sync for SingletonEvent<S>
impl<S> Unpin for SingletonEvent<S>
impl<S> UnwindSafe for SingletonEvent<S>
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