pub struct RetrievalProofAnchor {
pub checkpoint_sequence: u64,
pub checkpoint_digest: Option<[u8; 32]>,
pub snapshot_digest: [u8; 32],
}Expand description
Snapshot and log checkpoint identity trusted by one retrieval proof.
Fields§
§checkpoint_sequence: u64Materialized commit sequence captured by the snapshot.
checkpoint_digest: Option<[u8; 32]>Commit digest captured by the snapshot, absent only for empty history.
snapshot_digest: [u8; 32]Canonical logical snapshot digest.
Implementations§
Source§impl RetrievalProofAnchor
impl RetrievalProofAnchor
Sourcepub fn from_snapshot(snapshot: &SnapshotInfo) -> Self
pub fn from_snapshot(snapshot: &SnapshotInfo) -> Self
Creates an anchor from already verified snapshot metadata.
Trait Implementations§
Source§impl Clone for RetrievalProofAnchor
impl Clone for RetrievalProofAnchor
Source§fn clone(&self) -> RetrievalProofAnchor
fn clone(&self) -> RetrievalProofAnchor
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 RetrievalProofAnchor
impl Debug for RetrievalProofAnchor
impl Eq for RetrievalProofAnchor
Source§impl PartialEq for RetrievalProofAnchor
impl PartialEq for RetrievalProofAnchor
impl StructuralPartialEq for RetrievalProofAnchor
Auto Trait Implementations§
impl Freeze for RetrievalProofAnchor
impl RefUnwindSafe for RetrievalProofAnchor
impl Send for RetrievalProofAnchor
impl Sync for RetrievalProofAnchor
impl Unpin for RetrievalProofAnchor
impl UnsafeUnpin for RetrievalProofAnchor
impl UnwindSafe for RetrievalProofAnchor
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