Enum network::error::NetworkErrorKind
source · pub enum NetworkErrorKind {
IoError,
BcsError,
PeerManagerError,
NotConnected,
}
Variants§
Trait Implementations§
source§impl Clone for NetworkErrorKind
impl Clone for NetworkErrorKind
source§fn clone(&self) -> NetworkErrorKind
fn clone(&self) -> NetworkErrorKind
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 NetworkErrorKind
impl Debug for NetworkErrorKind
source§impl Display for NetworkErrorKind
impl Display for NetworkErrorKind
source§impl Error for NetworkErrorKind
impl Error for NetworkErrorKind
1.30.0 · 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<NetworkErrorKind> for NetworkError
impl From<NetworkErrorKind> for NetworkError
source§fn from(kind: NetworkErrorKind) -> NetworkError
fn from(kind: NetworkErrorKind) -> NetworkError
Converts to this type from the input type.
source§impl PartialEq<NetworkErrorKind> for NetworkErrorKind
impl PartialEq<NetworkErrorKind> for NetworkErrorKind
source§fn eq(&self, other: &NetworkErrorKind) -> bool
fn eq(&self, other: &NetworkErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NetworkErrorKind
impl Eq for NetworkErrorKind
impl StructuralEq for NetworkErrorKind
impl StructuralPartialEq for NetworkErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for NetworkErrorKind
impl Send for NetworkErrorKind
impl Sync for NetworkErrorKind
impl Unpin for NetworkErrorKind
impl UnwindSafe for NetworkErrorKind
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.