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§
source§impl 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)
Trait Implementations§
source§impl Clone for PartitionMaps
impl Clone for PartitionMaps
source§fn clone(&self) -> PartitionMaps
fn clone(&self) -> PartitionMaps
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PartitionMaps
impl Debug for PartitionMaps
source§impl Decoder for PartitionMaps
impl Decoder for PartitionMaps
source§impl Default for PartitionMaps
impl Default for PartitionMaps
source§fn default() -> PartitionMaps
fn default() -> PartitionMaps
Returns the “default value” for a type. Read more
source§impl Display for PartitionMaps
impl Display for PartitionMaps
source§impl Encoder for PartitionMaps
impl Encoder for PartitionMaps
source§impl From<PartitionMaps> for Vec<PartitionMap>
impl From<PartitionMaps> for Vec<PartitionMap>
source§fn from(maps: PartitionMaps) -> Self
fn from(maps: PartitionMaps) -> Self
Converts to this type from the input type.
source§impl From<Vec<PartitionMap>> for PartitionMaps
impl From<Vec<PartitionMap>> for PartitionMaps
source§fn from(maps: Vec<PartitionMap>) -> Self
fn from(maps: Vec<PartitionMap>) -> Self
Converts to this type from the input type.
source§impl PartialEq for PartitionMaps
impl PartialEq for PartitionMaps
source§fn 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 ==
.impl Eq for PartitionMaps
impl StructuralPartialEq for PartitionMaps
Auto Trait Implementations§
impl Freeze for PartitionMaps
impl RefUnwindSafe for PartitionMaps
impl Send for PartitionMaps
impl Sync for PartitionMaps
impl Unpin for PartitionMaps
impl UnwindSafe for PartitionMaps
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.