pub struct PartitionStats {
pub total_partitions: usize,
pub total_nodes: usize,
pub node_partition_counts: HashMap<NodeId, usize>,
pub partition_replica_counts: HashMap<PartitionId, usize>,
}
Expand description
Statistics about partition distribution
Fields§
§total_partitions: usize
§total_nodes: usize
§node_partition_counts: HashMap<NodeId, usize>
§partition_replica_counts: HashMap<PartitionId, usize>
Implementations§
Trait Implementations§
Source§impl Clone for PartitionStats
impl Clone for PartitionStats
Source§fn clone(&self) -> PartitionStats
fn clone(&self) -> PartitionStats
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PartitionStats
impl RefUnwindSafe for PartitionStats
impl Send for PartitionStats
impl Sync for PartitionStats
impl Unpin for PartitionStats
impl UnwindSafe for PartitionStats
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