pub enum FenceReason {
PeerClaimedEpoch,
PersistenceFailure,
}Expand description
Why a writer is fenced. Both reasons are terminal, but callers must tell them apart (a peer takeover vs. our own failure) rather than parse the message.
Variants§
PeerClaimedEpoch
A successor writer claimed a higher epoch; this writer lost ownership.
PersistenceFailure
Our own WAL persistence failed, so in-memory state may have diverged from the durable WAL. The writer must be reopened to replay.
Trait Implementations§
Source§impl Clone for FenceReason
impl Clone for FenceReason
Source§fn clone(&self) -> FenceReason
fn clone(&self) -> FenceReason
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 moreimpl Copy for FenceReason
Source§impl Debug for FenceReason
impl Debug for FenceReason
Source§impl Display for FenceReason
impl Display for FenceReason
impl Eq for FenceReason
Source§impl Hash for FenceReason
impl Hash for FenceReason
Source§impl PartialEq for FenceReason
impl PartialEq for FenceReason
impl StructuralPartialEq for FenceReason
Auto Trait Implementations§
impl Freeze for FenceReason
impl RefUnwindSafe for FenceReason
impl Send for FenceReason
impl Sync for FenceReason
impl Unpin for FenceReason
impl UnsafeUnpin for FenceReason
impl UnwindSafe for FenceReason
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.