pub struct ProjectionSourceLocatorV1 { /* private fields */ }Expand description
Full structural locator of one authoritative replay source.
The allocation incarnation belongs to the original allocation, including after checked restore/promotion/bootstrap. Matching fields do not establish transition validity or cross-fork uniqueness; references also require the immutable digest/origin commitment and verified source-transition evidence.
Implementations§
Source§impl ProjectionSourceLocatorV1
impl ProjectionSourceLocatorV1
Sourcepub const fn new(
database_id: DatabaseId,
allocation_history_incarnation: u64,
ordinal: ProjectionCheckpointOrdinal,
) -> Option<Self>
pub const fn new( database_id: DatabaseId, allocation_history_incarnation: u64, ordinal: ProjectionCheckpointOrdinal, ) -> Option<Self>
Reconstructs the locator without changing its inherited origin identity.
Sourcepub const fn database_id(self) -> DatabaseId
pub const fn database_id(self) -> DatabaseId
Permanent database identity of the original allocation.
Sourcepub const fn allocation_history_incarnation(self) -> u64
pub const fn allocation_history_incarnation(self) -> u64
Nonzero incarnation in which the coordinator assigned the ordinal.
Sourcepub const fn ordinal(self) -> ProjectionCheckpointOrdinal
pub const fn ordinal(self) -> ProjectionCheckpointOrdinal
Original nonzero allocation ordinal.
Trait Implementations§
Source§impl Clone for ProjectionSourceLocatorV1
impl Clone for ProjectionSourceLocatorV1
impl Copy for ProjectionSourceLocatorV1
Source§impl Debug for ProjectionSourceLocatorV1
impl Debug for ProjectionSourceLocatorV1
impl Eq for ProjectionSourceLocatorV1
Source§impl Hash for ProjectionSourceLocatorV1
impl Hash for ProjectionSourceLocatorV1
Source§impl Ord for ProjectionSourceLocatorV1
impl Ord for ProjectionSourceLocatorV1
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 PartialOrd for ProjectionSourceLocatorV1
impl PartialOrd for ProjectionSourceLocatorV1
impl StructuralPartialEq for ProjectionSourceLocatorV1
Auto Trait Implementations§
impl Freeze for ProjectionSourceLocatorV1
impl RefUnwindSafe for ProjectionSourceLocatorV1
impl Send for ProjectionSourceLocatorV1
impl Sync for ProjectionSourceLocatorV1
impl Unpin for ProjectionSourceLocatorV1
impl UnsafeUnpin for ProjectionSourceLocatorV1
impl UnwindSafe for ProjectionSourceLocatorV1
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