Struct openraft::error::QuorumNotEnough
source · pub struct QuorumNotEnough<NID: NodeId> {
pub cluster: String,
pub got: BTreeSet<NID>,
}
Fields§
§cluster: String
§got: BTreeSet<NID>
Trait Implementations§
source§impl<NID: Clone + NodeId> Clone for QuorumNotEnough<NID>
impl<NID: Clone + NodeId> Clone for QuorumNotEnough<NID>
source§fn clone(&self) -> QuorumNotEnough<NID>
fn clone(&self) -> QuorumNotEnough<NID>
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<NID: NodeId> Error for QuorumNotEnough<NID>where
Self: Debug + Display,
impl<NID: NodeId> Error for QuorumNotEnough<NID>where Self: Debug + Display,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<NID, N> From<QuorumNotEnough<NID>> for CheckIsLeaderError<NID, N>where
NID: NodeId,
N: Node,
impl<NID, N> From<QuorumNotEnough<NID>> for CheckIsLeaderError<NID, N>where NID: NodeId, N: Node,
source§fn from(source: QuorumNotEnough<NID>) -> Self
fn from(source: QuorumNotEnough<NID>) -> Self
Converts to this type from the input type.
source§impl<NID: PartialEq + NodeId> PartialEq<QuorumNotEnough<NID>> for QuorumNotEnough<NID>
impl<NID: PartialEq + NodeId> PartialEq<QuorumNotEnough<NID>> for QuorumNotEnough<NID>
source§fn eq(&self, other: &QuorumNotEnough<NID>) -> bool
fn eq(&self, other: &QuorumNotEnough<NID>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<NID, N> TryFrom<CheckIsLeaderError<NID, N>> for QuorumNotEnough<NID>where
NID: NodeId,
N: Node,
impl<NID, N> TryFrom<CheckIsLeaderError<NID, N>> for QuorumNotEnough<NID>where NID: NodeId, N: Node,
impl<NID: Eq + NodeId> Eq for QuorumNotEnough<NID>
impl<NID: NodeId> StructuralEq for QuorumNotEnough<NID>
impl<NID: NodeId> StructuralPartialEq for QuorumNotEnough<NID>
Auto Trait Implementations§
impl<NID> RefUnwindSafe for QuorumNotEnough<NID>where NID: RefUnwindSafe,
impl<NID> Send for QuorumNotEnough<NID>
impl<NID> Sync for QuorumNotEnough<NID>
impl<NID> Unpin for QuorumNotEnough<NID>
impl<NID> UnwindSafe for QuorumNotEnough<NID>where NID: RefUnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.