Struct openraft::error::NetworkError
source · pub struct NetworkError { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for NetworkError
impl Clone for NetworkError
source§fn clone(&self) -> NetworkError
fn clone(&self) -> NetworkError
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 NetworkError
impl Debug for NetworkError
source§impl Display for NetworkError
impl Display for NetworkError
source§impl Error for NetworkError
impl Error for NetworkError
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<AnyError> for NetworkError
impl From<AnyError> for NetworkError
source§impl<NID: NodeId, N: Node, E: Error> From<NetworkError> for RPCError<NID, N, E>
impl<NID: NodeId, N: Node, E: Error> From<NetworkError> for RPCError<NID, N, E>
source§fn from(source: NetworkError) -> Self
fn from(source: NetworkError) -> Self
Converts to this type from the input type.
source§impl PartialEq<NetworkError> for NetworkError
impl PartialEq<NetworkError> for NetworkError
source§fn eq(&self, other: &NetworkError) -> bool
fn eq(&self, other: &NetworkError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NetworkError
impl StructuralEq for NetworkError
impl StructuralPartialEq for NetworkError
Auto Trait Implementations§
impl RefUnwindSafe for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl UnwindSafe for NetworkError
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.