Enum openraft::error::InitializeError
source · pub enum InitializeError<NID, N>where
NID: NodeId,
N: Node,{
NotAllowed(NotAllowed<NID>),
NotInMembers(NotInMembers<NID, N>),
}
Expand description
The set of errors which may take place when initializing a pristine Raft node.
Variants§
NotAllowed(NotAllowed<NID>)
NotInMembers(NotInMembers<NID, N>)
Trait Implementations§
source§impl<NID, N> Clone for InitializeError<NID, N>where
NID: NodeId + Clone,
N: Node + Clone,
impl<NID, N> Clone for InitializeError<NID, N>where NID: NodeId + Clone, N: Node + Clone,
source§fn clone(&self) -> InitializeError<NID, N>
fn clone(&self) -> InitializeError<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 InitializeError<NID, N>where
NID: NodeId,
N: Node,
NotAllowed<NID>: Display,
NotInMembers<NID, N>: Display,
impl<NID, N> Display for InitializeError<NID, N>where NID: NodeId, N: Node, NotAllowed<NID>: Display, NotInMembers<NID, N>: Display,
source§impl<NID, N> Error for InitializeError<NID, N>where
NID: NodeId,
N: Node,
NotAllowed<NID>: Error,
NotInMembers<NID, N>: Error,
Self: Debug + Display,
impl<NID, N> Error for InitializeError<NID, N>where NID: NodeId, N: Node, NotAllowed<NID>: Error, NotInMembers<NID, N>: Error, Self: Debug + Display,
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<NotAllowed<NID>> for InitializeError<NID, N>where
NID: NodeId,
N: Node,
impl<NID, N> From<NotAllowed<NID>> for InitializeError<NID, N>where NID: NodeId, N: Node,
source§fn from(source: NotAllowed<NID>) -> Self
fn from(source: NotAllowed<NID>) -> Self
Converts to this type from the input type.
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<InitializeError<NID, N>> for InitializeError<NID, N>where
NID: NodeId + PartialEq,
N: Node + PartialEq,
impl<NID, N> PartialEq<InitializeError<NID, N>> for InitializeError<NID, N>where NID: NodeId + PartialEq, N: Node + PartialEq,
source§fn eq(&self, other: &InitializeError<NID, N>) -> bool
fn eq(&self, other: &InitializeError<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 NotAllowed<NID>where
NID: NodeId,
N: Node,
impl<NID, N> TryFrom<InitializeError<NID, N>> for NotAllowed<NID>where NID: NodeId, N: Node,
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 InitializeError<NID, N>where NID: NodeId + Eq, N: Node + Eq,
impl<NID, N> StructuralEq for InitializeError<NID, N>where NID: NodeId, N: Node,
impl<NID, N> StructuralPartialEq for InitializeError<NID, N>where NID: NodeId, N: Node,
Auto Trait Implementations§
impl<NID, N> RefUnwindSafe for InitializeError<NID, N>where N: RefUnwindSafe, NID: RefUnwindSafe,
impl<NID, N> Send for InitializeError<NID, N>
impl<NID, N> Sync for InitializeError<NID, N>
impl<NID, N> Unpin for InitializeError<NID, N>where NID: Unpin,
impl<NID, N> UnwindSafe for InitializeError<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.