pub struct CommittedGenerationBytes {
pub generation: u64,
pub commit_marker: u64,
pub checksum: u64,
pub payload: Vec<u8>,
}Expand description
CommittedGenerationBytes
Physically committed ledger generation payload protected by a checksum.
Fields§
§generation: u64Generation number represented by this payload.
commit_marker: u64Physical commit marker. Readers reject records with an invalid marker.
checksum: u64Checksum over the generation, marker, and payload bytes.
payload: Vec<u8>Encoded ledger generation payload.
Implementations§
Trait Implementations§
Source§impl Clone for CommittedGenerationBytes
impl Clone for CommittedGenerationBytes
Source§fn clone(&self) -> CommittedGenerationBytes
fn clone(&self) -> CommittedGenerationBytes
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 CommittedGenerationBytes
impl Debug for CommittedGenerationBytes
Source§impl<'de> Deserialize<'de> for CommittedGenerationBytes
impl<'de> Deserialize<'de> for CommittedGenerationBytes
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 CommittedGenerationBytes
impl PartialEq for CommittedGenerationBytes
Source§fn eq(&self, other: &CommittedGenerationBytes) -> bool
fn eq(&self, other: &CommittedGenerationBytes) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommittedGenerationBytes
impl Serialize for CommittedGenerationBytes
impl Eq for CommittedGenerationBytes
impl StructuralPartialEq for CommittedGenerationBytes
Auto Trait Implementations§
impl Freeze for CommittedGenerationBytes
impl RefUnwindSafe for CommittedGenerationBytes
impl Send for CommittedGenerationBytes
impl Sync for CommittedGenerationBytes
impl Unpin for CommittedGenerationBytes
impl UnsafeUnpin for CommittedGenerationBytes
impl UnwindSafe for CommittedGenerationBytes
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