pub enum BlockOperation {
DelayBuildingSnapshot,
BuildSnapshot,
PurgeLog,
}
Variants§
DelayBuildingSnapshot
Block building a snapshot but does not hold a lock on the state machine. This will prevent building snapshot returning but should not block applying entries.
BuildSnapshot
PurgeLog
Trait Implementations§
source§impl Clone for BlockOperation
impl Clone for BlockOperation
source§fn clone(&self) -> BlockOperation
fn clone(&self) -> BlockOperation
Returns a copy of the value. Read more
1.0.0 · 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 BlockOperation
impl Debug for BlockOperation
source§impl Ord for BlockOperation
impl Ord for BlockOperation
source§fn cmp(&self, other: &BlockOperation) -> Ordering
fn cmp(&self, other: &BlockOperation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BlockOperation
impl PartialEq for BlockOperation
source§fn eq(&self, other: &BlockOperation) -> bool
fn eq(&self, other: &BlockOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BlockOperation
impl PartialOrd for BlockOperation
source§fn partial_cmp(&self, other: &BlockOperation) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockOperation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for BlockOperation
impl StructuralPartialEq for BlockOperation
Auto Trait Implementations§
impl Freeze for BlockOperation
impl RefUnwindSafe for BlockOperation
impl Send for BlockOperation
impl Sync for BlockOperation
impl Unpin for BlockOperation
impl UnwindSafe for BlockOperation
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