pub enum CheckpointStatus {
Active {},
Released {
released_at_ms: u64,
},
}Expand description
Monotonic status of a durable checkpoint record.
A new record starts active and pins its basis. Explicit release or expiry moves it to the terminal released status by compare-and-swap. Released records serve no reads and are deleted after the release grace period. Creating another pin always creates a new record id.
Variants§
Active
Protects the checkpoint basis and permits reads.
The braces make serde reject a stray released_at_ms; a unit variant
would silently accept and discard that field.
Released
Terminal: the pin is gone and the record is waiting to be deleted.
Trait Implementations§
Source§impl Clone for CheckpointStatus
impl Clone for CheckpointStatus
Source§fn clone(&self) -> CheckpointStatus
fn clone(&self) -> CheckpointStatus
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 CheckpointStatus
Source§impl Debug for CheckpointStatus
impl Debug for CheckpointStatus
Source§impl<'de> Deserialize<'de> for CheckpointStatus
impl<'de> Deserialize<'de> for CheckpointStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CheckpointStatus
impl Display for CheckpointStatus
impl Eq for CheckpointStatus
Source§impl PartialEq for CheckpointStatus
impl PartialEq for CheckpointStatus
Source§impl Serialize for CheckpointStatus
impl Serialize for CheckpointStatus
impl StructuralPartialEq for CheckpointStatus
Auto Trait Implementations§
impl Freeze for CheckpointStatus
impl RefUnwindSafe for CheckpointStatus
impl Send for CheckpointStatus
impl Sync for CheckpointStatus
impl Unpin for CheckpointStatus
impl UnsafeUnpin for CheckpointStatus
impl UnwindSafe for CheckpointStatus
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