pub struct ScopedPitId { /* private fields */ }Expand description
A PIT identifier whose namespace is fenced by the coordinated recovery era.
The era is part of the identifier rather than adjacent command metadata so a nonce may be reused only after the durable authority has advanced.
Implementations§
Source§impl ScopedPitId
impl ScopedPitId
pub const fn new(recovery_era: RecoveryEra, nonce: PitId) -> Self
pub const fn recovery_era(&self) -> RecoveryEra
pub const fn nonce(&self) -> &PitId
Trait Implementations§
Source§impl Clone for ScopedPitId
impl Clone for ScopedPitId
Source§impl Debug for ScopedPitId
impl Debug for ScopedPitId
Source§impl<'de> Deserialize<'de> for ScopedPitId
impl<'de> Deserialize<'de> for ScopedPitId
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
impl Eq for ScopedPitId
Source§impl Hash for ScopedPitId
impl Hash for ScopedPitId
Source§impl Ord for ScopedPitId
impl Ord for ScopedPitId
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 ScopedPitId
impl PartialEq for ScopedPitId
Source§impl PartialOrd for ScopedPitId
impl PartialOrd for ScopedPitId
Source§impl Serialize for ScopedPitId
impl Serialize for ScopedPitId
impl StructuralPartialEq for ScopedPitId
Auto Trait Implementations§
impl Freeze for ScopedPitId
impl RefUnwindSafe for ScopedPitId
impl Send for ScopedPitId
impl Sync for ScopedPitId
impl Unpin for ScopedPitId
impl UnsafeUnpin for ScopedPitId
impl UnwindSafe for ScopedPitId
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