pub struct DerivedRecordId { /* private fields */ }Expand description
Stable idempotency key for one record read from the authoritative CommitLog.
Implementations§
Source§impl DerivedRecordId
impl DerivedRecordId
Sourcepub const fn try_new(
source_epoch: u64,
physical_offset: u64,
length: u32,
) -> Result<Self, StoreContractViolation>
pub const fn try_new( source_epoch: u64, physical_offset: u64, length: u32, ) -> Result<Self, StoreContractViolation>
Creates a record identity after validating its half-open physical range.
§Errors
Returns StoreContractViolation when length is zero or the range overflows.
Sourcepub const fn source_epoch(self) -> u64
pub const fn source_epoch(self) -> u64
Returns the source generation that owns the physical offset namespace.
Sourcepub const fn physical_offset(self) -> u64
pub const fn physical_offset(self) -> u64
Returns the inclusive starting physical offset.
Sourcepub const fn end_offset(self) -> u64
pub const fn end_offset(self) -> u64
Returns the exclusive physical end offset.
Trait Implementations§
Source§impl Clone for DerivedRecordId
impl Clone for DerivedRecordId
impl Copy for DerivedRecordId
Source§impl Debug for DerivedRecordId
impl Debug for DerivedRecordId
impl Eq for DerivedRecordId
Source§impl Hash for DerivedRecordId
impl Hash for DerivedRecordId
Source§impl Ord for DerivedRecordId
impl Ord for DerivedRecordId
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 DerivedRecordId
impl PartialEq for DerivedRecordId
Source§impl PartialOrd for DerivedRecordId
impl PartialOrd for DerivedRecordId
impl StructuralPartialEq for DerivedRecordId
Auto Trait Implementations§
impl Freeze for DerivedRecordId
impl RefUnwindSafe for DerivedRecordId
impl Send for DerivedRecordId
impl Sync for DerivedRecordId
impl Unpin for DerivedRecordId
impl UnsafeUnpin for DerivedRecordId
impl UnwindSafe for DerivedRecordId
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