pub enum SnapshotStart {
Resume {
snapshot: ChainSnapshot,
tail: Vec<Vec<u8>>,
},
Whole(WholeFold),
}Expand description
Where a start folds from: the state after a snapshot and the lines past it, or genesis and the reason no snapshot served.
Variants§
Resume
The snapshot fits: fold tail, the lines after its seq, onto its views.
Whole(WholeFold)
Fold from genesis. The lines are not carried: the caller streams them a segment at a time rather than holding the whole ledger.
Trait Implementations§
Source§impl Clone for SnapshotStart
impl Clone for SnapshotStart
Source§impl Debug for SnapshotStart
impl Debug for SnapshotStart
impl Eq for SnapshotStart
Source§impl PartialEq for SnapshotStart
impl PartialEq for SnapshotStart
impl StructuralPartialEq for SnapshotStart
Auto Trait Implementations§
impl Freeze for SnapshotStart
impl RefUnwindSafe for SnapshotStart
impl Send for SnapshotStart
impl Sync for SnapshotStart
impl Unpin for SnapshotStart
impl UnsafeUnpin for SnapshotStart
impl UnwindSafe for SnapshotStart
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