pub enum LSChange<S, C> where
S: Spec,
C: MetadataItem,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>, {
Add(MetadataStoreObject<S, C>),
Mod(MetadataStoreObject<S, C>, MetadataStoreObject<S, C>),
Delete(MetadataStoreObject<S, C>),
}
Expand description
changes that happened in the store
Variants
Add(MetadataStoreObject<S, C>)
Mod(MetadataStoreObject<S, C>, MetadataStoreObject<S, C>)
Delete(MetadataStoreObject<S, C>)
Implementations
sourceimpl<S, C> LSChange<S, C> where
S: Spec,
C: MetadataItem,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
impl<S, C> LSChange<S, C> where
S: Spec,
C: MetadataItem,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
pub fn add<K>(value: K) -> LSChange<S, C> where
K: Into<MetadataStoreObject<S, C>>,
pub fn update(
new: MetadataStoreObject<S, C>,
old: MetadataStoreObject<S, C>
) -> LSChange<S, C>
pub fn delete(value: MetadataStoreObject<S, C>) -> LSChange<S, C>
Trait Implementations
sourceimpl<S, C> Clone for LSChange<S, C> where
S: Clone + Spec,
C: Clone + MetadataItem,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
impl<S, C> Clone for LSChange<S, C> where
S: Clone + Spec,
C: Clone + MetadataItem,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
sourceimpl<S, C> Debug for LSChange<S, C> where
S: Debug + Spec,
C: Debug + MetadataItem,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
impl<S, C> Debug for LSChange<S, C> where
S: Debug + Spec,
C: Debug + MetadataItem,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
sourceimpl<S, C> Display for LSChange<S, C> where
S: Spec,
C: MetadataItem,
<S as Spec>::IndexKey: Display,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
impl<S, C> Display for LSChange<S, C> where
S: Spec,
C: MetadataItem,
<S as Spec>::IndexKey: Display,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
sourceimpl<S, C, D> From<LSChange<S, C>> for Message<D> where
S: Spec,
S::Status: PartialEq,
C: MetadataItem,
D: Encoder + Decoder + Debug,
D: From<MetadataStoreObject<S, C>>,
impl<S, C, D> From<LSChange<S, C>> for Message<D> where
S: Spec,
S::Status: PartialEq,
C: MetadataItem,
D: Encoder + Decoder + Debug,
D: From<MetadataStoreObject<S, C>>,
sourceimpl<S, C> From<LSChange<S, C>> for SpecChange<S> where
S: Spec,
C: MetadataItem,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
impl<S, C> From<LSChange<S, C>> for SpecChange<S> where
S: Spec,
C: MetadataItem,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
sourcefn from(meta: LSChange<S, C>) -> SpecChange<S>
fn from(meta: LSChange<S, C>) -> SpecChange<S>
Converts to this type from the input type.
sourceimpl<S, C> PartialEq<LSChange<S, C>> for LSChange<S, C> where
S: PartialEq<S> + Spec,
C: PartialEq<C> + MetadataItem,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
impl<S, C> PartialEq<LSChange<S, C>> for LSChange<S, C> where
S: PartialEq<S> + Spec,
C: PartialEq<C> + MetadataItem,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
impl<S, C> StructuralPartialEq for LSChange<S, C> where
S: Spec,
C: MetadataItem,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
Auto Trait Implementations
impl<S, C> RefUnwindSafe for LSChange<S, C> where
C: RefUnwindSafe,
S: RefUnwindSafe,
<S as Spec>::IndexKey: RefUnwindSafe,
<S as Spec>::Status: RefUnwindSafe,
impl<S, C> Send for LSChange<S, C> where
C: Send,
S: Send,
<S as Spec>::IndexKey: Send,
<S as Spec>::Status: Send,
impl<S, C> Sync for LSChange<S, C> where
C: Sync,
S: Sync,
<S as Spec>::IndexKey: Sync,
<S as Spec>::Status: Sync,
impl<S, C> Unpin for LSChange<S, C> where
C: Unpin,
S: Unpin,
<S as Spec>::IndexKey: Unpin,
<S as Spec>::Status: Unpin,
impl<S, C> UnwindSafe for LSChange<S, C> where
C: UnwindSafe,
S: UnwindSafe,
<S as Spec>::IndexKey: UnwindSafe,
<S as Spec>::Status: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more