pub struct CheckpointId(/* private fields */);Expand description
Durable checkpoint identifier.
The manifest number determines which namespace manifest it pins.
Implementations§
Source§impl CheckpointId
impl CheckpointId
Source§impl CheckpointId
impl CheckpointId
Sourcepub fn generate(manifest_no: ManifestNo) -> Self
pub fn generate(manifest_no: ManifestNo) -> Self
Generates a new pin for the given manifest number.
Sourcepub fn manifest_no(&self) -> ManifestNo
pub fn manifest_no(&self) -> ManifestNo
Returns the manifest number encoded in this id.
Trait Implementations§
Source§impl AsRef<str> for CheckpointId
impl AsRef<str> for CheckpointId
Source§impl Borrow<str> for CheckpointId
impl Borrow<str> for CheckpointId
Source§impl Clone for CheckpointId
impl Clone for CheckpointId
Source§impl Debug for CheckpointId
impl Debug for CheckpointId
Source§impl<'de> Deserialize<'de> for CheckpointId
impl<'de> Deserialize<'de> for CheckpointId
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 CheckpointId
impl Display for CheckpointId
impl Eq for CheckpointId
Source§impl From<CheckpointId> for SnapshotId
impl From<CheckpointId> for SnapshotId
Source§fn from(checkpoint_id: CheckpointId) -> Self
fn from(checkpoint_id: CheckpointId) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotId> for CheckpointId
impl From<SnapshotId> for CheckpointId
Source§fn from(snapshot_id: SnapshotId) -> Self
fn from(snapshot_id: SnapshotId) -> Self
Converts to this type from the input type.
Source§impl FromStr for CheckpointId
impl FromStr for CheckpointId
Source§impl Hash for CheckpointId
impl Hash for CheckpointId
Source§impl Ord for CheckpointId
impl Ord for CheckpointId
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CheckpointId
impl PartialEq for CheckpointId
Source§impl PartialOrd for CheckpointId
impl PartialOrd for CheckpointId
Source§impl Serialize for CheckpointId
impl Serialize for CheckpointId
impl StructuralPartialEq for CheckpointId
Source§impl TryFrom<&str> for CheckpointId
impl TryFrom<&str> for CheckpointId
Auto Trait Implementations§
impl Freeze for CheckpointId
impl RefUnwindSafe for CheckpointId
impl Send for CheckpointId
impl Sync for CheckpointId
impl Unpin for CheckpointId
impl UnsafeUnpin for CheckpointId
impl UnwindSafe for CheckpointId
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