pub struct PartitionRecord { /* private fields */ }Expand description
Record of a detected partition.
Implementations§
Source§impl PartitionRecord
impl PartitionRecord
Sourcepub fn other_side(&self) -> &[u64]
pub fn other_side(&self) -> &[u64]
Get the other side nodes.
Sourcepub fn partition_subnet(&self) -> Option<SubnetId>
pub fn partition_subnet(&self) -> Option<SubnetId>
Get the partition subnet.
Sourcepub fn phase(&self) -> &PartitionPhase
pub fn phase(&self) -> &PartitionPhase
Get the current phase.
Sourcepub fn horizon_at_split(&self) -> &ObservedHorizon
pub fn horizon_at_split(&self) -> &ObservedHorizon
Get the horizon snapshot at split time.
Sourcepub fn healing_progress(&self) -> f32
pub fn healing_progress(&self) -> f32
Fraction of the other side that has reappeared.
Trait Implementations§
Source§impl Clone for PartitionRecord
impl Clone for PartitionRecord
Source§fn clone(&self) -> PartitionRecord
fn clone(&self) -> PartitionRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PartitionRecord
impl RefUnwindSafe for PartitionRecord
impl Send for PartitionRecord
impl Sync for PartitionRecord
impl Unpin for PartitionRecord
impl UnsafeUnpin for PartitionRecord
impl UnwindSafe for PartitionRecord
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