Struct fluvio_sc_schema::topic::PartitionMaps [−][src]
pub struct PartitionMaps { /* fields omitted */ }
Expand description
Hack: field instead of new type to get around encode and decode limitations
Implementations
impl PartitionMaps
[src]
impl PartitionMaps
[src]pub fn maps(&self) -> &Vec<PartitionMap, Global>
[src]
pub fn maps_owned(self) -> Vec<PartitionMap, Global>
[src]
pub fn unique_spus_in_partition_map(&self) -> Vec<i32, Global>
[src]
pub fn unique_spus_in_partition_map(&self) -> Vec<i32, Global>
[src]Generate a vector with all spu ids represented by all partitions (no duplicates)
pub fn partition_map_to_replica_map(&self) -> BTreeMap<i32, Vec<i32, Global>>
[src]
pub fn partition_map_to_replica_map(&self) -> BTreeMap<i32, Vec<i32, Global>>
[src]Convert partition map into replica map
pub fn valid_partition_map(&self) -> Result<(), Error>
[src]
pub fn valid_partition_map(&self) -> Result<(), Error>
[src]Validate partition map for assigned topics
Trait Implementations
impl Clone for PartitionMaps
[src]
impl Clone for PartitionMaps
[src]pub fn clone(&self) -> PartitionMaps
[src]
pub fn clone(&self) -> PartitionMaps
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for PartitionMaps
[src]
impl Debug for PartitionMaps
[src]impl Decoder for PartitionMaps
[src]
impl Decoder for PartitionMaps
[src]impl Default for PartitionMaps
[src]
impl Default for PartitionMaps
[src]pub fn default() -> PartitionMaps
[src]
pub fn default() -> PartitionMaps
[src]Returns the “default value” for a type. Read more
impl Display for PartitionMaps
[src]
impl Display for PartitionMaps
[src]impl Encoder for PartitionMaps
[src]
impl Encoder for PartitionMaps
[src]impl From<Vec<PartitionMap, Global>> for PartitionMaps
[src]
impl From<Vec<PartitionMap, Global>> for PartitionMaps
[src]pub fn from(maps: Vec<PartitionMap, Global>) -> PartitionMaps
[src]
pub fn from(maps: Vec<PartitionMap, Global>) -> PartitionMaps
[src]Performs the conversion.
impl PartialEq<PartitionMaps> for PartitionMaps
[src]
impl PartialEq<PartitionMaps> for PartitionMaps
[src]pub fn eq(&self, other: &PartitionMaps) -> bool
[src]
pub fn eq(&self, other: &PartitionMaps) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &PartitionMaps) -> bool
[src]
pub fn ne(&self, other: &PartitionMaps) -> bool
[src]This method tests for !=
.
impl StructuralPartialEq for PartitionMaps
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more