Struct fluvio_stream_dispatcher::store::MetadataStoreObject [−][src]
pub struct MetadataStoreObject<S, C> where
C: MetadataItem,
S: Spec, { pub spec: S, pub status: <S as Spec>::Status, pub key: <S as Spec>::IndexKey, pub ctx: MetadataContext<C>, }
Fields
spec: S
status: <S as Spec>::Status
key: <S as Spec>::IndexKey
ctx: MetadataContext<C>
Implementations
impl<S, C> MetadataStoreObject<S, C> where
C: MetadataItem,
S: Spec,
<S as Spec>::Status: Default,
impl<S, C> MetadataStoreObject<S, C> where
C: MetadataItem,
S: Spec,
<S as Spec>::Status: Default,
pub fn new<J>(
key: J,
spec: S,
status: <S as Spec>::Status
) -> MetadataStoreObject<S, C> where
J: Into<<S as Spec>::IndexKey>,
pub fn new_with_context<J>(
key: J,
spec: S,
ctx: MetadataContext<C>
) -> MetadataStoreObject<S, C> where
J: Into<<S as Spec>::IndexKey>,
pub fn with_spec<J>(key: J, spec: S) -> MetadataStoreObject<S, C> where
C: Default,
J: Into<<S as Spec>::IndexKey>,
check if metadata is owned by other
pub async fn childrens<T>(
&'_ self,
child_stores: &'_ LocalStore<T, C>
) -> Vec<MetadataStoreObject<T, C>, Global> where
T: Spec,
pub async fn childrens<T>(
&'_ self,
child_stores: &'_ LocalStore<T, C>
) -> Vec<MetadataStoreObject<T, C>, Global> where
T: Spec,
find children of this object
Trait Implementations
impl<S, C> DualDiff for MetadataStoreObject<S, C> where
C: MetadataItem + PartialEq<C>,
S: Spec,
impl<S, C> DualDiff for MetadataStoreObject<S, C> where
C: MetadataItem + PartialEq<C>,
S: Spec,
compute difference, in our case we take account of version as well
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<S, C> RefUnwindSafe for MetadataStoreObject<S, C> where
C: RefUnwindSafe,
S: RefUnwindSafe,
<S as Spec>::IndexKey: RefUnwindSafe,
<S as Spec>::Status: RefUnwindSafe,
impl<S, C> Send for MetadataStoreObject<S, C> where
C: Send,
S: Send,
<S as Spec>::IndexKey: Send,
<S as Spec>::Status: Send,
impl<S, C> Sync for MetadataStoreObject<S, C> where
C: Sync,
S: Sync,
<S as Spec>::IndexKey: Sync,
<S as Spec>::Status: Sync,
impl<S, C> Unpin for MetadataStoreObject<S, C> where
C: Unpin,
S: Unpin,
<S as Spec>::IndexKey: Unpin,
<S as Spec>::Status: Unpin,
impl<S, C> UnwindSafe for MetadataStoreObject<S, C> where
C: UnwindSafe,
S: UnwindSafe,
<S as Spec>::IndexKey: UnwindSafe,
<S as Spec>::Status: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more