pub enum ClientWriteError {
ForwardToLeader(ForwardToLeader),
ChangeMembershipError(ChangeMembershipError),
}Variants§
ForwardToLeader(ForwardToLeader)
ChangeMembershipError(ChangeMembershipError)
When writing a change-membership entry.
Trait Implementations§
source§impl Clone for ClientWriteError
impl Clone for ClientWriteError
source§fn clone(&self) -> ClientWriteError
fn clone(&self) -> ClientWriteError
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 Debug for ClientWriteError
impl Debug for ClientWriteError
source§impl<'de> Deserialize<'de> for ClientWriteError
impl<'de> Deserialize<'de> for ClientWriteError
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 Display for ClientWriteError
impl Display for ClientWriteError
source§impl Error for ClientWriteError
impl Error for ClientWriteError
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 From<ChangeMembershipError> for ClientWriteError
impl From<ChangeMembershipError> for ClientWriteError
source§fn from(source: ChangeMembershipError) -> Self
fn from(source: ChangeMembershipError) -> Self
Converts to this type from the input type.
source§impl From<ForwardToLeader> for ClientWriteError
impl From<ForwardToLeader> for ClientWriteError
source§fn from(source: ForwardToLeader) -> Self
fn from(source: ForwardToLeader) -> Self
Converts to this type from the input type.
source§impl PartialEq for ClientWriteError
impl PartialEq for ClientWriteError
source§fn eq(&self, other: &ClientWriteError) -> bool
fn eq(&self, other: &ClientWriteError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ClientWriteError
impl Serialize for ClientWriteError
source§impl TryAsRef<ForwardToLeader> for ClientWriteError
impl TryAsRef<ForwardToLeader> for ClientWriteError
fn try_as_ref(&self) -> Option<&ForwardToLeader>
source§impl TryFrom<ClientWriteError> for ForwardToLeader
impl TryFrom<ClientWriteError> for ForwardToLeader
impl Eq for ClientWriteError
impl StructuralPartialEq for ClientWriteError
Auto Trait Implementations§
impl Freeze for ClientWriteError
impl RefUnwindSafe for ClientWriteError
impl Send for ClientWriteError
impl Sync for ClientWriteError
impl Unpin for ClientWriteError
impl UnwindSafe for ClientWriteError
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