Struct openraft::error::NotInMembers
source · pub struct NotInMembers<NID, N>where
NID: NodeId,
N: Node,{
pub node_id: NID,
pub membership: Membership<NID, N>,
}
Fields§
§node_id: NID
§membership: Membership<NID, N>
Trait Implementations§
source§impl<NID, N> Clone for NotInMembers<NID, N>where
NID: NodeId + Clone,
N: Node + Clone,
impl<NID, N> Clone for NotInMembers<NID, N>where NID: NodeId + Clone, N: Node + Clone,
source§fn clone(&self) -> NotInMembers<NID, N>
fn clone(&self) -> NotInMembers<NID, N>
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, N> Display for NotInMembers<NID, N>where
NID: NodeId + Display,
N: Node,
Membership<NID, N>: Debug,
impl<NID, N> Display for NotInMembers<NID, N>where NID: NodeId + Display, N: Node, Membership<NID, N>: Debug,
source§impl<NID, N> Error for NotInMembers<NID, N>where
NID: NodeId,
N: Node,
Self: Debug + Display,
impl<NID, N> Error for NotInMembers<NID, N>where NID: NodeId, N: Node, 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<NotInMembers<NID, N>> for InitializeError<NID, N>where
NID: NodeId,
N: Node,
impl<NID, N> From<NotInMembers<NID, N>> for InitializeError<NID, N>where NID: NodeId, N: Node,
source§fn from(source: NotInMembers<NID, N>) -> Self
fn from(source: NotInMembers<NID, N>) -> Self
Converts to this type from the input type.
source§impl<NID, N> PartialEq<NotInMembers<NID, N>> for NotInMembers<NID, N>where
NID: NodeId + PartialEq,
N: Node + PartialEq,
impl<NID, N> PartialEq<NotInMembers<NID, N>> for NotInMembers<NID, N>where NID: NodeId + PartialEq, N: Node + PartialEq,
source§fn eq(&self, other: &NotInMembers<NID, N>) -> bool
fn eq(&self, other: &NotInMembers<NID, N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<NID, N> TryFrom<InitializeError<NID, N>> for NotInMembers<NID, N>where
NID: NodeId,
N: Node,
impl<NID, N> TryFrom<InitializeError<NID, N>> for NotInMembers<NID, N>where NID: NodeId, N: Node,
impl<NID, N> Eq for NotInMembers<NID, N>where NID: NodeId + Eq, N: Node + Eq,
impl<NID, N> StructuralEq for NotInMembers<NID, N>where NID: NodeId, N: Node,
impl<NID, N> StructuralPartialEq for NotInMembers<NID, N>where NID: NodeId, N: Node,
Auto Trait Implementations§
impl<NID, N> RefUnwindSafe for NotInMembers<NID, N>where N: RefUnwindSafe, NID: RefUnwindSafe,
impl<NID, N> Send for NotInMembers<NID, N>
impl<NID, N> Sync for NotInMembers<NID, N>
impl<NID, N> Unpin for NotInMembers<NID, N>where NID: Unpin,
impl<NID, N> UnwindSafe for NotInMembers<NID, N>where N: RefUnwindSafe, NID: UnwindSafe + 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.