pub enum CheckpointState {
None,
Dumping,
Dumped,
Restoring,
Restored,
}Expand description
Checkpoint state tracking
Variants§
None
No checkpoint in progress
Dumping
Checkpoint is being created
Dumped
Checkpoint is complete
Restoring
Restore is in progress
Restored
Restore is complete
Trait Implementations§
Source§impl Clone for CheckpointState
impl Clone for CheckpointState
Source§fn clone(&self) -> CheckpointState
fn clone(&self) -> CheckpointState
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 moreimpl Copy for CheckpointState
Source§impl Debug for CheckpointState
impl Debug for CheckpointState
impl Eq for CheckpointState
Source§impl PartialEq for CheckpointState
impl PartialEq for CheckpointState
Source§fn eq(&self, other: &CheckpointState) -> bool
fn eq(&self, other: &CheckpointState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl StateTransition for CheckpointState
impl StateTransition for CheckpointState
Source§fn can_transition_to(&self, next: &CheckpointState) -> bool
fn can_transition_to(&self, next: &CheckpointState) -> bool
Return
true if moving from self to next is a valid transition.Source§fn is_terminal(&self) -> bool
fn is_terminal(&self) -> bool
Return
true if this state is terminal (no forward transitions).Source§fn transition(self, next: Self) -> Result<Self>
fn transition(self, next: Self) -> Result<Self>
Attempt to transition, returning
Err(InvalidStateTransition) on failure.impl StructuralPartialEq for CheckpointState
Auto Trait Implementations§
impl Freeze for CheckpointState
impl RefUnwindSafe for CheckpointState
impl Send for CheckpointState
impl Sync for CheckpointState
impl Unpin for CheckpointState
impl UnsafeUnpin for CheckpointState
impl UnwindSafe for CheckpointState
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