pub struct DeltaEncoding {
pub checkpoint: Checkpoint,
pub chain_len: usize,
}Expand description
What encode_delta decided to persist for one put, plus the chain
length the stored checkpoint leaves behind.
Fields§
§checkpoint: CheckpointThe checkpoint to store: either the put’s checkpoint unchanged
(base == None, a full snapshot), or a channel-level delta whose
base names the chain head’s id and whose state carries only the
channels that changed since the head.
chain_len: usizeConsecutive delta links below this checkpoint once stored (0 for a full snapshot).
Trait Implementations§
Source§impl Clone for DeltaEncoding
impl Clone for DeltaEncoding
Source§fn clone(&self) -> DeltaEncoding
fn clone(&self) -> DeltaEncoding
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 moreAuto Trait Implementations§
impl Freeze for DeltaEncoding
impl RefUnwindSafe for DeltaEncoding
impl Send for DeltaEncoding
impl Sync for DeltaEncoding
impl Unpin for DeltaEncoding
impl UnsafeUnpin for DeltaEncoding
impl UnwindSafe for DeltaEncoding
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