pub struct CheckpointRevision(/* private fields */);Expand description
The checkpoint format revision, fail-closed on the wire.
A separate axis from AbiRevision on purpose: the wire contract and the checkpoint layout
can move independently, and DEC-6 renamed the field to checkpoint_version so this value could
start at 1 without colliding with retired recovery-format revisions.
Deserialising anything else fails at the boundary, so “an unrecognised checkpoint version” can
never reach a restore.
Implementations§
Trait Implementations§
Source§impl Clone for CheckpointRevision
impl Clone for CheckpointRevision
Source§fn clone(&self) -> CheckpointRevision
fn clone(&self) -> CheckpointRevision
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 CheckpointRevision
Source§impl Debug for CheckpointRevision
impl Debug for CheckpointRevision
Source§impl Default for CheckpointRevision
impl Default for CheckpointRevision
Source§impl<'de> Deserialize<'de> for CheckpointRevision
impl<'de> Deserialize<'de> for CheckpointRevision
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CheckpointRevision
impl Display for CheckpointRevision
impl Eq for CheckpointRevision
Source§impl Hash for CheckpointRevision
impl Hash for CheckpointRevision
Source§impl Ord for CheckpointRevision
impl Ord for CheckpointRevision
Source§fn cmp(&self, other: &CheckpointRevision) -> Ordering
fn cmp(&self, other: &CheckpointRevision) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CheckpointRevision
impl PartialEq for CheckpointRevision
Source§impl PartialOrd for CheckpointRevision
impl PartialOrd for CheckpointRevision
Source§impl Serialize for CheckpointRevision
impl Serialize for CheckpointRevision
impl StructuralPartialEq for CheckpointRevision
Auto Trait Implementations§
impl Freeze for CheckpointRevision
impl RefUnwindSafe for CheckpointRevision
impl Send for CheckpointRevision
impl Sync for CheckpointRevision
impl Unpin for CheckpointRevision
impl UnsafeUnpin for CheckpointRevision
impl UnwindSafe for CheckpointRevision
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more