pub enum ConnectionErrorKind {
Spawn,
NoSuchRelay,
SendTo,
NoConnection,
NotConnected,
Wakeup,
AddConnection,
}
Expand description
The specific kind of error that can occur.
Variants§
Spawn
Spawing after adding global connection error.
NoSuchRelay
Search relay by relay’s PK, but no such relay.
SendTo
Send packet(s) error.
NoConnection
No connection to the node.
NotConnected
Relay is not connected.
Wakeup
Tcp Connections wakeup timer error.
AddConnection
Add connection to client error.
Trait Implementations§
Source§impl Clone for ConnectionErrorKind
impl Clone for ConnectionErrorKind
Source§fn clone(&self) -> ConnectionErrorKind
fn clone(&self) -> ConnectionErrorKind
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 ConnectionErrorKind
impl Debug for ConnectionErrorKind
Source§impl Display for ConnectionErrorKind
impl Display for ConnectionErrorKind
Source§impl Fail for ConnectionErrorKind
impl Fail for ConnectionErrorKind
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<ConnectionErrorKind> for ConnectionError
impl From<ConnectionErrorKind> for ConnectionError
Source§fn from(kind: ConnectionErrorKind) -> ConnectionError
fn from(kind: ConnectionErrorKind) -> ConnectionError
Converts to this type from the input type.
Source§impl PartialEq for ConnectionErrorKind
impl PartialEq for ConnectionErrorKind
impl Eq for ConnectionErrorKind
impl StructuralPartialEq for ConnectionErrorKind
Auto Trait Implementations§
impl Freeze for ConnectionErrorKind
impl RefUnwindSafe for ConnectionErrorKind
impl Send for ConnectionErrorKind
impl Sync for ConnectionErrorKind
impl Unpin for ConnectionErrorKind
impl UnwindSafe for ConnectionErrorKind
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more