Enum openraft::error::ClientWriteError
source · pub enum ClientWriteError<NID, N>{
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>
impl<NID, N> Clone for ClientWriteError<NID, N>
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> Debug for ClientWriteError<NID, N>
impl<NID, N> Debug for ClientWriteError<NID, N>
source§impl<'de, NID, N> Deserialize<'de> for ClientWriteError<NID, N>
impl<'de, NID, N> Deserialize<'de> for ClientWriteError<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 ClientWriteError<NID, N>
impl<NID, N> Display for ClientWriteError<NID, N>
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)>
Returns 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>
impl<NID, N> From<ChangeMembershipError<NID>> for ClientWriteError<NID, N>
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>
impl<NID, N> From<ForwardToLeader<NID, N>> for ClientWriteError<NID, N>
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 for ClientWriteError<NID, N>
impl<NID, N> PartialEq for ClientWriteError<NID, N>
source§impl<NID, N> Serialize for ClientWriteError<NID, N>
impl<NID, N> Serialize for ClientWriteError<NID, N>
source§impl<NID, N> TryAsRef<ForwardToLeader<NID, N>> for ClientWriteError<NID, N>
impl<NID, N> TryAsRef<ForwardToLeader<NID, N>> for ClientWriteError<NID, N>
source§fn try_as_ref(&self) -> Option<&ForwardToLeader<NID, N>>
fn try_as_ref(&self) -> Option<&ForwardToLeader<NID, N>>
Try to convert this type into a shared reference of
T
.source§impl<NID, N> TryFrom<ClientWriteError<NID, N>> for ChangeMembershipError<NID>
impl<NID, N> TryFrom<ClientWriteError<NID, N>> for ChangeMembershipError<NID>
source§type Error = TryIntoError<ClientWriteError<NID, N>>
type Error = TryIntoError<ClientWriteError<NID, N>>
The type returned in the event of a conversion error.
source§impl<NID, N> TryFrom<ClientWriteError<NID, N>> for ForwardToLeader<NID, N>
impl<NID, N> TryFrom<ClientWriteError<NID, N>> for ForwardToLeader<NID, N>
source§type Error = TryIntoError<ClientWriteError<NID, N>>
type Error = TryIntoError<ClientWriteError<NID, N>>
The type returned in the event of a conversion error.
impl<NID, N> Eq for ClientWriteError<NID, N>
impl<NID, N> StructuralPartialEq for ClientWriteError<NID, N>
Auto Trait Implementations§
impl<NID, N> Freeze for ClientWriteError<NID, N>
impl<NID, N> RefUnwindSafe for ClientWriteError<NID, N>where
NID: RefUnwindSafe,
N: 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>
impl<NID, N> UnwindSafe for ClientWriteError<NID, N>where
NID: UnwindSafe,
N: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)