Struct fluvio_controlplane_metadata::topic::PartitionMaps
source · [−]pub struct PartitionMaps { /* private fields */ }
Expand description
Hack: field instead of new type to get around encode and decode limitations
Implementations
sourceimpl PartitionMaps
impl PartitionMaps
pub fn maps(&self) -> &Vec<PartitionMap>
pub fn maps_owned(self) -> Vec<PartitionMap>
sourcepub fn unique_spus_in_partition_map(&self) -> Vec<SpuId>
pub fn unique_spus_in_partition_map(&self) -> Vec<SpuId>
Generate a vector with all spu ids represented by all partitions (no duplicates)
sourcepub fn partition_map_to_replica_map(&self) -> ReplicaMap
pub fn partition_map_to_replica_map(&self) -> ReplicaMap
Convert partition map into replica map
sourcepub fn valid_partition_map(&self) -> Result<(), Error>
pub fn valid_partition_map(&self) -> Result<(), Error>
Validate partition map for assigned topics
Trait Implementations
sourceimpl Clone for PartitionMaps
impl Clone for PartitionMaps
sourcefn clone(&self) -> PartitionMaps
fn clone(&self) -> PartitionMaps
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PartitionMaps
impl Debug for PartitionMaps
sourceimpl Decoder for PartitionMaps
impl Decoder for PartitionMaps
sourceimpl Default for PartitionMaps
impl Default for PartitionMaps
sourcefn default() -> PartitionMaps
fn default() -> PartitionMaps
Returns the “default value” for a type. Read more
sourceimpl Display for PartitionMaps
impl Display for PartitionMaps
sourceimpl Encoder for PartitionMaps
impl Encoder for PartitionMaps
sourceimpl From<Vec<PartitionMap, Global>> for PartitionMaps
impl From<Vec<PartitionMap, Global>> for PartitionMaps
sourcefn from(maps: Vec<PartitionMap>) -> Self
fn from(maps: Vec<PartitionMap>) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PartitionMaps> for PartitionMaps
impl PartialEq<PartitionMaps> for PartitionMaps
sourcefn eq(&self, other: &PartitionMaps) -> bool
fn eq(&self, other: &PartitionMaps) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PartitionMaps) -> bool
fn ne(&self, other: &PartitionMaps) -> bool
This method tests for !=
.
impl StructuralPartialEq for PartitionMaps
Auto Trait Implementations
impl RefUnwindSafe for PartitionMaps
impl Send for PartitionMaps
impl Sync for PartitionMaps
impl Unpin for PartitionMaps
impl UnwindSafe for PartitionMaps
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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