Enum paxakos::append::Importance [−][src]
pub enum Importance {
GainLeadership,
MaintainLeadership(Peeryness),
}
Expand description
Describes the importance of an append operation.
Variants
If necessary, leadership should be gained.
Note: Just because leadership should be gained does not imply that it can or will be gained. It merely implies that the node will not immediately give up when it doesn’t have leadership.
MaintainLeadership(Peeryness)
Leadership should only be maintained.
Using this mode implies that the given append is of low importance. We wish only to go through with it if it does not require an election cycle.
Tuple Fields of MaintainLeadership
0: Peeryness
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Importance
impl Send for Importance
impl Sync for Importance
impl Unpin for Importance
impl UnwindSafe for Importance
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more