Enum openraft::error::ClientWriteError
source · pub enum ClientWriteError<NID, N>where
NID: NodeId,
N: Node,{
ForwardToLeader(ForwardToLeader<NID, N>),
ChangeMembershipError(ChangeMembershipError<NID>),
}
Expand description
An error related to a client write request.
Variants§
ForwardToLeader(ForwardToLeader<NID, N>)
ChangeMembershipError(ChangeMembershipError<NID>)
When writing a change-membership entry.
Trait Implementations§
source§impl<NID, N> Clone for ClientWriteError<NID, N>where
NID: NodeId + Clone,
N: Node + Clone,
impl<NID, N> Clone for ClientWriteError<NID, N>where NID: NodeId + Clone, N: Node + Clone,
source§fn clone(&self) -> ClientWriteError<NID, N>
fn clone(&self) -> ClientWriteError<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 ClientWriteError<NID, N>where
NID: NodeId,
N: Node,
ForwardToLeader<NID, N>: Display,
ChangeMembershipError<NID>: Display,
impl<NID, N> Display for ClientWriteError<NID, N>where NID: NodeId, N: Node, ForwardToLeader<NID, N>: Display, ChangeMembershipError<NID>: Display,
source§impl<NID, N> Error for ClientWriteError<NID, N>where
NID: NodeId,
N: Node,
ForwardToLeader<NID, N>: Error,
ChangeMembershipError<NID>: Error,
Self: Debug + Display,
impl<NID, N> Error for ClientWriteError<NID, N>where NID: NodeId, N: Node, ForwardToLeader<NID, N>: Error, ChangeMembershipError<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<ChangeMembershipError<NID>> for ClientWriteError<NID, N>where
NID: NodeId,
N: Node,
impl<NID, N> From<ChangeMembershipError<NID>> for ClientWriteError<NID, N>where NID: NodeId, N: Node,
source§fn from(source: ChangeMembershipError<NID>) -> Self
fn from(source: ChangeMembershipError<NID>) -> Self
Converts to this type from the input type.
source§impl<NID, N> From<ForwardToLeader<NID, N>> for ClientWriteError<NID, N>where
NID: NodeId,
N: Node,
impl<NID, N> From<ForwardToLeader<NID, N>> for ClientWriteError<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> PartialEq<ClientWriteError<NID, N>> for ClientWriteError<NID, N>where
NID: NodeId + PartialEq,
N: Node + PartialEq,
impl<NID, N> PartialEq<ClientWriteError<NID, N>> for ClientWriteError<NID, N>where NID: NodeId + PartialEq, N: Node + PartialEq,
source§fn eq(&self, other: &ClientWriteError<NID, N>) -> bool
fn eq(&self, other: &ClientWriteError<NID, N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<NID, N> TryAsRef<ForwardToLeader<NID, N>> for ClientWriteError<NID, N>where
NID: NodeId,
N: Node,
impl<NID, N> TryAsRef<ForwardToLeader<NID, N>> for ClientWriteError<NID, N>where NID: NodeId, N: Node,
fn try_as_ref(&self) -> Option<&ForwardToLeader<NID, N>>
source§impl<NID, N> TryFrom<ClientWriteError<NID, N>> for ChangeMembershipError<NID>where
NID: NodeId,
N: Node,
impl<NID, N> TryFrom<ClientWriteError<NID, N>> for ChangeMembershipError<NID>where NID: NodeId, N: Node,
source§impl<NID, N> TryFrom<ClientWriteError<NID, N>> for ForwardToLeader<NID, N>where
NID: NodeId,
N: Node,
impl<NID, N> TryFrom<ClientWriteError<NID, N>> for ForwardToLeader<NID, N>where NID: NodeId, N: Node,
impl<NID, N> Eq for ClientWriteError<NID, N>where NID: NodeId + Eq, N: Node + Eq,
impl<NID, N> StructuralEq for ClientWriteError<NID, N>where NID: NodeId, N: Node,
impl<NID, N> StructuralPartialEq for ClientWriteError<NID, N>where NID: NodeId, N: Node,
Auto Trait Implementations§
impl<NID, N> RefUnwindSafe for ClientWriteError<NID, N>where N: RefUnwindSafe, NID: RefUnwindSafe,
impl<NID, N> Send for ClientWriteError<NID, N>
impl<NID, N> Sync for ClientWriteError<NID, N>
impl<NID, N> Unpin for ClientWriteError<NID, N>where N: Unpin, NID: Unpin,
impl<NID, N> UnwindSafe for ClientWriteError<NID, N>where N: UnwindSafe, NID: UnwindSafe,
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.