pub struct SourceCheckpoint { /* private fields */ }Expand description
The exact source frontier one projection generation covers.
Implementations§
Source§impl SourceCheckpoint
impl SourceCheckpoint
Sourcepub const fn new(
source: JournalSource,
feed_position: u64,
journal_position: u64,
evidence_leaf: u64,
covering_attestation: JournalAttestation,
) -> Self
pub const fn new( source: JournalSource, feed_position: u64, journal_position: u64, evidence_leaf: u64, covering_attestation: JournalAttestation, ) -> Self
Records one exact source frontier.
Sourcepub const fn source(&self) -> &JournalSource
pub const fn source(&self) -> &JournalSource
Returns the lineage this checkpoint covers.
Sourcepub const fn feed_position(&self) -> u64
pub const fn feed_position(&self) -> u64
Returns the feed position.
Sourcepub const fn journal_position(&self) -> u64
pub const fn journal_position(&self) -> u64
Returns the journal position.
Sourcepub const fn evidence_leaf(&self) -> u64
pub const fn evidence_leaf(&self) -> u64
Returns the evidence leaf index.
Sourcepub const fn covering_attestation(&self) -> &JournalAttestation
pub const fn covering_attestation(&self) -> &JournalAttestation
Returns the attestation covering this checkpoint.
Trait Implementations§
Source§impl Clone for SourceCheckpoint
impl Clone for SourceCheckpoint
Source§fn clone(&self) -> SourceCheckpoint
fn clone(&self) -> SourceCheckpoint
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 moreSource§impl Debug for SourceCheckpoint
impl Debug for SourceCheckpoint
impl Eq for SourceCheckpoint
Source§impl PartialEq for SourceCheckpoint
impl PartialEq for SourceCheckpoint
impl StructuralPartialEq for SourceCheckpoint
Auto Trait Implementations§
impl Freeze for SourceCheckpoint
impl RefUnwindSafe for SourceCheckpoint
impl Send for SourceCheckpoint
impl Sync for SourceCheckpoint
impl Unpin for SourceCheckpoint
impl UnsafeUnpin for SourceCheckpoint
impl UnwindSafe for SourceCheckpoint
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