pub enum Payload {
Genesis,
Delta(Vec<u8>),
Snapshot(Vec<u8>),
}Expand description
The payload carried by a Merkle node.
Variants§
Genesis
Genesis node - the root of the DAG.
Delta(Vec<u8>)
A delta-group containing incremental state changes. The bytes are a serialized delta from the δ-CRDT layer.
Snapshot(Vec<u8>)
A snapshot of the full state at a point in time. Used for compaction and bootstrapping new replicas.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Payload
impl<'de> Deserialize<'de> for Payload
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
impl Eq for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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