Enum openraft::error::InitializeError
source · pub enum InitializeError<NID, N>{
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>
impl<NID, N> Clone for InitializeError<NID, N>
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> Debug for InitializeError<NID, N>
impl<NID, N> Debug for InitializeError<NID, N>
source§impl<'de, NID, N> Deserialize<'de> for InitializeError<NID, N>
impl<'de, NID, N> Deserialize<'de> for InitializeError<NID, N>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<NID, N> Display for InitializeError<NID, N>
impl<NID, N> Display for InitializeError<NID, N>
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>
impl<NID, N> From<NotAllowed<NID>> for InitializeError<NID, N>
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>
impl<NID, N> From<NotInMembers<NID, N>> for InitializeError<NID, N>
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 for InitializeError<NID, N>
impl<NID, N> PartialEq for InitializeError<NID, N>
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> Serialize for InitializeError<NID, N>
impl<NID, N> Serialize for InitializeError<NID, N>
source§impl<NID, N> TryFrom<InitializeError<NID, N>> for NotAllowed<NID>
impl<NID, N> TryFrom<InitializeError<NID, N>> for NotAllowed<NID>
source§impl<NID, N> TryFrom<InitializeError<NID, N>> for NotInMembers<NID, N>
impl<NID, N> TryFrom<InitializeError<NID, N>> for NotInMembers<NID, N>
impl<NID, N> Eq for InitializeError<NID, N>
impl<NID, N> StructuralPartialEq for InitializeError<NID, N>
Auto Trait Implementations§
impl<NID, N> Freeze for InitializeError<NID, N>where
NID: Freeze,
impl<NID, N> RefUnwindSafe for InitializeError<NID, N>where
NID: RefUnwindSafe,
N: 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>
Blanket Implementations§
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