#[non_exhaustive]pub enum CheckpointMoveCounter {
Attempted,
Accepted,
Rejected,
}Expand description
Move-statistics counter category used in checkpoint resume diagnostics.
Use this with CheckpointResumeFailure::MoveCounterOverflow and
CheckpointResumeFailure::CounterConversionOverflow to distinguish which
aggregated counter could not be represented without parsing display text.
§Examples
use causal_triangulations::prelude::errors::CheckpointMoveCounter;
assert_eq!(CheckpointMoveCounter::Attempted.to_string(), "attempted");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for CheckpointMoveCounter
impl Clone for CheckpointMoveCounter
Source§fn clone(&self) -> CheckpointMoveCounter
fn clone(&self) -> CheckpointMoveCounter
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 moreSource§impl Debug for CheckpointMoveCounter
impl Debug for CheckpointMoveCounter
Source§impl Display for CheckpointMoveCounter
impl Display for CheckpointMoveCounter
Source§impl Hash for CheckpointMoveCounter
impl Hash for CheckpointMoveCounter
Source§impl PartialEq for CheckpointMoveCounter
impl PartialEq for CheckpointMoveCounter
Source§fn eq(&self, other: &CheckpointMoveCounter) -> bool
fn eq(&self, other: &CheckpointMoveCounter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CheckpointMoveCounter
impl Eq for CheckpointMoveCounter
impl StructuralPartialEq for CheckpointMoveCounter
Auto Trait Implementations§
impl Freeze for CheckpointMoveCounter
impl RefUnwindSafe for CheckpointMoveCounter
impl Send for CheckpointMoveCounter
impl Sync for CheckpointMoveCounter
impl Unpin for CheckpointMoveCounter
impl UnsafeUnpin for CheckpointMoveCounter
impl UnwindSafe for CheckpointMoveCounter
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