pub enum ItemChange<I> {
Initial {
item: I,
},
Add {
item: I,
events: Vec<Attested<Event>>,
},
Update {
item: I,
events: Vec<Attested<Event>>,
},
Remove {
item: I,
events: Vec<Attested<Event>>,
},
}Variants§
Initial
Initial retrieval of an item upon subscription
Fields
§
item: IAdd
A new item was added OR changed such that it now matches the subscription
Update
A item that previously matched the subscription has changed in a way that has not changed the matching condition
Remove
A item that previously matched the subscription has changed in a way that no longer matches the subscription
Implementations§
Trait Implementations§
Source§impl<I: Clone> Clone for ItemChange<I>
impl<I: Clone> Clone for ItemChange<I>
Source§fn clone(&self) -> ItemChange<I>
fn clone(&self) -> ItemChange<I>
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<I: Debug> Debug for ItemChange<I>
impl<I: Debug> Debug for ItemChange<I>
Source§impl<I> Display for ItemChange<I>where
I: View,
impl<I> Display for ItemChange<I>where
I: View,
Source§impl<R> From<&ItemChange<R>> for ChangeKind
impl<R> From<&ItemChange<R>> for ChangeKind
Source§fn from(change: &ItemChange<R>) -> Self
fn from(change: &ItemChange<R>) -> Self
Converts to this type from the input type.
Source§impl<I> From<ItemChange<Entity>> for ItemChange<I>where
I: View,
impl<I> From<ItemChange<Entity>> for ItemChange<I>where
I: View,
Source§fn from(change: ItemChange<Entity>) -> Self
fn from(change: ItemChange<Entity>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<I> Freeze for ItemChange<I>where
I: Freeze,
impl<I> RefUnwindSafe for ItemChange<I>where
I: RefUnwindSafe,
impl<I> Send for ItemChange<I>where
I: Send,
impl<I> Sync for ItemChange<I>where
I: Sync,
impl<I> Unpin for ItemChange<I>where
I: Unpin,
impl<I> UnwindSafe for ItemChange<I>where
I: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more