pub struct SnapshotBaseline { /* private fields */ }Expand description
Canonical durable reference to the immutable signed snapshot used as a history baseline.
Implementations§
Source§impl SnapshotBaseline
impl SnapshotBaseline
pub fn new( domain_id: DomainId, epoch: u64, manifest_hash: BlobHash, state_root: [u8; 32], frontier: Vec<CommitId>, author_sequences: Vec<(AuthorId, u64)>, ) -> Result<Self, StoreError>
pub const fn domain_id(&self) -> DomainId
pub const fn epoch(&self) -> u64
pub const fn manifest_hash(&self) -> BlobHash
pub const fn state_root(&self) -> [u8; 32]
pub fn frontier(&self) -> &[CommitId]
Trait Implementations§
Source§impl Clone for SnapshotBaseline
impl Clone for SnapshotBaseline
Source§fn clone(&self) -> SnapshotBaseline
fn clone(&self) -> SnapshotBaseline
Returns a duplicate of the value. Read more
1.0.0 · 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 SnapshotBaseline
impl Debug for SnapshotBaseline
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for SnapshotBaseline
impl<'bytes, Ctx> Decode<'bytes, Ctx> for SnapshotBaseline
Source§impl<Ctx> Encode<Ctx> for SnapshotBaseline
impl<Ctx> Encode<Ctx> for SnapshotBaseline
Source§impl PartialEq for SnapshotBaseline
impl PartialEq for SnapshotBaseline
impl Eq for SnapshotBaseline
impl StructuralPartialEq for SnapshotBaseline
Auto Trait Implementations§
impl Freeze for SnapshotBaseline
impl RefUnwindSafe for SnapshotBaseline
impl Send for SnapshotBaseline
impl Sync for SnapshotBaseline
impl Unpin for SnapshotBaseline
impl UnwindSafe for SnapshotBaseline
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> RecordKey for T
impl<T> RecordKey for T
§fn encode_key(&self) -> Result<Vec<u8>, RecordError>
fn encode_key(&self) -> Result<Vec<u8>, RecordError>
Encodes this key into its unique durable representation.
§fn decode_key(bytes: &[u8]) -> Result<T, RecordError>
fn decode_key(bytes: &[u8]) -> Result<T, RecordError>
Strictly decodes a key from its unique durable representation.