Enum openraft::error::CheckIsLeaderError
source · pub enum CheckIsLeaderError<NID, N>where
NID: NodeId,
N: Node,{
ForwardToLeader(ForwardToLeader<NID, N>),
QuorumNotEnough(QuorumNotEnough<NID>),
}
Expand description
An error related to a is_leader request.
Variants§
ForwardToLeader(ForwardToLeader<NID, N>)
QuorumNotEnough(QuorumNotEnough<NID>)
Trait Implementations§
source§impl<NID, N> Clone for CheckIsLeaderError<NID, N>where
NID: NodeId + Clone,
N: Node + Clone,
impl<NID, N> Clone for CheckIsLeaderError<NID, N>where NID: NodeId + Clone, N: Node + Clone,
source§fn clone(&self) -> CheckIsLeaderError<NID, N>
fn clone(&self) -> CheckIsLeaderError<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 CheckIsLeaderError<NID, N>where
NID: NodeId,
N: Node,
ForwardToLeader<NID, N>: Display,
QuorumNotEnough<NID>: Display,
impl<NID, N> Display for CheckIsLeaderError<NID, N>where NID: NodeId, N: Node, ForwardToLeader<NID, N>: Display, QuorumNotEnough<NID>: Display,
source§impl<NID, N> Error for CheckIsLeaderError<NID, N>where
NID: NodeId,
N: Node,
ForwardToLeader<NID, N>: Error,
QuorumNotEnough<NID>: Error,
Self: Debug + Display,
impl<NID, N> Error for CheckIsLeaderError<NID, N>where NID: NodeId, N: Node, ForwardToLeader<NID, N>: Error, QuorumNotEnough<NID>: 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<ForwardToLeader<NID, N>> for CheckIsLeaderError<NID, N>where
NID: NodeId,
N: Node,
impl<NID, N> From<ForwardToLeader<NID, N>> for CheckIsLeaderError<NID, N>where NID: NodeId, N: Node,
source§fn from(source: ForwardToLeader<NID, N>) -> Self
fn from(source: ForwardToLeader<NID, N>) -> Self
Converts to this type from the input type.
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.