pub struct SnapshotHeader {
pub format_version: u8,
pub sequence_no: u64,
pub state_root: B256,
pub sealed_at_ts: u64,
pub body_len: u64,
}Expand description
Lightweight metadata for a sealed snapshot — no body allocation.
Fields§
§format_version: u8On-disk format version. Current: [SNAPSHOT_FORMAT_V1].
sequence_no: u64State-tree sequence number at which this snapshot was taken.
state_root: B256State root hash of the unified JMT at sequence_no.
sealed_at_ts: u64UNIX timestamp (seconds) when the snapshot was sealed.
body_len: u64Size of the serialized body in bytes.
Trait Implementations§
Source§impl Clone for SnapshotHeader
impl Clone for SnapshotHeader
Source§fn clone(&self) -> SnapshotHeader
fn clone(&self) -> SnapshotHeader
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 SnapshotHeader
impl Debug for SnapshotHeader
Source§impl<'de> Deserialize<'de> for SnapshotHeader
impl<'de> Deserialize<'de> for SnapshotHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SnapshotHeader
impl PartialEq for SnapshotHeader
Source§fn eq(&self, other: &SnapshotHeader) -> bool
fn eq(&self, other: &SnapshotHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SnapshotHeader
impl Serialize for SnapshotHeader
impl Eq for SnapshotHeader
impl StructuralPartialEq for SnapshotHeader
Auto Trait Implementations§
impl Freeze for SnapshotHeader
impl RefUnwindSafe for SnapshotHeader
impl Send for SnapshotHeader
impl Sync for SnapshotHeader
impl Unpin for SnapshotHeader
impl UnsafeUnpin for SnapshotHeader
impl UnwindSafe for SnapshotHeader
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