Struct fluvio_sc_schema::store::MetadataStoreObject [−]
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,
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>,
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>,
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>,
C: Default,
J: Into<<S as Spec>::IndexKey>,
pub fn with_key<J>(key: J) -> MetadataStoreObject<S, C> where
J: Into<<S as Spec>::IndexKey>,
J: Into<<S as Spec>::IndexKey>,
pub fn with_context(
self,
ctx: impl Into<MetadataContext<C>>
) -> MetadataStoreObject<S, C>
self,
ctx: impl Into<MetadataContext<C>>
) -> MetadataStoreObject<S, C>
pub fn key(&self) -> &<S as Spec>::IndexKey
pub fn key_owned(&self) -> <S as Spec>::IndexKey
pub fn my_key(self) -> <S as Spec>::IndexKey
pub fn spec(&self) -> &S
pub fn set_spec(&mut self, spec: S)
pub fn status(&self) -> &<S as Spec>::Status
pub fn set_status(&mut self, status: <S as Spec>::Status)
pub fn ctx(&self) -> &MetadataContext<C>
pub fn ctx_mut(&mut self) -> &mut MetadataContext<C>
pub fn ctx_owned(&self) -> MetadataContext<C>
pub fn set_ctx(&mut self, ctx: MetadataContext<C>)
pub fn parts(
self
) -> (<S as Spec>::IndexKey, S, <S as Spec>::Status, MetadataContext<C>)
self
) -> (<S as Spec>::IndexKey, S, <S as Spec>::Status, MetadataContext<C>)
pub fn is_owned(&self, uid: &<C as MetadataItem>::UId) -> bool
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,
&'_ self,
child_stores: &'_ LocalStore<T, C>
) -> Vec<MetadataStoreObject<T, C>, Global> where
T: Spec,
find children of this object
pub fn is_newer(&self, another: &MetadataStoreObject<S, C>) -> bool
impl<S, C> MetadataStoreObject<S, C> where
C: MetadataRevExtension,
S: Spec,
C: MetadataRevExtension,
S: Spec,
pub fn next_rev(&self) -> MetadataStoreObject<S, C>
Trait Implementations
impl<S, C> Clone for MetadataStoreObject<S, C> where
C: Clone + MetadataItem,
S: Clone + Spec,
<S as Spec>::Status: Clone,
<S as Spec>::IndexKey: Clone,
C: Clone + MetadataItem,
S: Clone + Spec,
<S as Spec>::Status: Clone,
<S as Spec>::IndexKey: Clone,
pub fn clone(&self) -> MetadataStoreObject<S, C>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S, C> Debug for MetadataStoreObject<S, C> where
C: Debug + MetadataItem,
S: Debug + Spec,
<S as Spec>::Status: Debug,
<S as Spec>::IndexKey: Debug,
C: Debug + MetadataItem,
S: Debug + Spec,
<S as Spec>::Status: Debug,
<S as Spec>::IndexKey: Debug,
impl<S, C> DualDiff for MetadataStoreObject<S, C> where
C: MetadataItem + PartialEq<C>,
S: Spec,
C: MetadataItem + PartialEq<C>,
S: Spec,
pub fn diff(&self, new_value: &MetadataStoreObject<S, C>) -> ChangeFlag
compute difference, in our case we take account of version as well
impl<C> From<MetadataStoreObject<PartitionSpec, C>> for Replica where
C: MetadataItem,
[src]
C: MetadataItem,
pub fn from(item: MetadataStoreObject<PartitionSpec, C>) -> Replica
[src]
impl<S, C> From<MetadataStoreObject<S, C>> for Metadata<S> where
S: Spec + Encoder + Decoder,
S::IndexKey: ToString,
S::Status: Encoder + Decoder,
C: MetadataItem,
[src]
S: Spec + Encoder + Decoder,
S::IndexKey: ToString,
S::Status: Encoder + Decoder,
C: MetadataItem,
fn from(meta: MetadataStoreObject<S, C>) -> Self
[src]
impl<S, C> Into<(<S as Spec>::IndexKey, S, <S as Spec>::Status)> for MetadataStoreObject<S, C> where
C: MetadataItem,
S: Spec,
C: MetadataItem,
S: Spec,
impl<S, C> PartialEq<MetadataStoreObject<S, C>> for MetadataStoreObject<S, C> where
C: PartialEq<C> + MetadataItem,
S: PartialEq<S> + Spec,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
<S as Spec>::IndexKey: PartialEq<<S as Spec>::IndexKey>,
C: PartialEq<C> + MetadataItem,
S: PartialEq<S> + Spec,
<S as Spec>::Status: PartialEq<<S as Spec>::Status>,
<S as Spec>::IndexKey: PartialEq<<S as Spec>::IndexKey>,
pub fn eq(&self, other: &MetadataStoreObject<S, C>) -> bool
pub fn ne(&self, other: &MetadataStoreObject<S, C>) -> bool
impl<C> PartitionMd<C> for MetadataStoreObject<PartitionSpec, C> where
C: MetadataItem,
[src]
C: MetadataItem,
pub fn with_replicas(
key: ReplicaKey,
replicas: Vec<i32, Global>
) -> MetadataStoreObject<PartitionSpec, C>
[src]
key: ReplicaKey,
replicas: Vec<i32, Global>
) -> MetadataStoreObject<PartitionSpec, C>
create new partition with replica map. first element of replicas is leader
pub fn quick<S>(
partition: ((S, i32), Vec<i32, Global>)
) -> MetadataStoreObject<PartitionSpec, C> where
S: Into<String>,
[src]
partition: ((S, i32), Vec<i32, Global>)
) -> MetadataStoreObject<PartitionSpec, C> where
S: Into<String>,
impl<C> SpuMd<C> for MetadataStoreObject<SpuSpec, C> where
C: MetadataItem,
[src]
C: MetadataItem,
pub fn quick<J>(
spu: (J, i32, bool, Option<String>)
) -> MetadataStoreObject<SpuSpec, C> where
J: Into<String>,
[src]
spu: (J, i32, bool, Option<String>)
) -> MetadataStoreObject<SpuSpec, C> where
J: Into<String>,
impl<S, C> StructuralPartialEq for MetadataStoreObject<S, C> where
C: MetadataItem,
S: Spec,
C: MetadataItem,
S: Spec,
impl<C> TopicMd<C> for MetadataStoreObject<TopicSpec, C> where
C: MetadataItem + Send + Sync,
[src]
C: MetadataItem + Send + Sync,
pub fn create_new_partitions<'life0, 'life1, 'async_trait>(
&'life0 self,
partition_store: &'life1 LocalStore<PartitionSpec, C>
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<PartitionSpec, C>, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
MetadataStoreObject<TopicSpec, C>: 'async_trait,
[src]
&'life0 self,
partition_store: &'life1 LocalStore<PartitionSpec, C>
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<PartitionSpec, C>, Global>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
MetadataStoreObject<TopicSpec, C>: 'async_trait,
create new partitions from my replica map if it doesn't exists from partition store
impl<S, C> TryFrom<Metadata<S>> for MetadataStoreObject<S, C> where
S: Spec + Encoder + Decoder,
S::Status: Encoder + Decoder,
C: MetadataItem,
<S as Spec>::IndexKey: TryFrom<String>,
<<S as Spec>::IndexKey as TryFrom<String>>::Error: Display,
[src]
S: Spec + Encoder + Decoder,
S::Status: Encoder + Decoder,
C: MetadataItem,
<S as Spec>::IndexKey: TryFrom<String>,
<<S as Spec>::IndexKey as TryFrom<String>>::Error: Display,
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,
[src]
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,
[src]
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,
[src]
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,
[src]
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,
[src]
C: UnwindSafe,
S: UnwindSafe,
<S as Spec>::IndexKey: UnwindSafe,
<S as Spec>::Status: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,