pub enum TcpDisconnectReason {
LocalClose,
IoError(Arc<Error>),
HeartbeatTimeout(Arc<Elapsed>),
BadHandshake,
ThreadPanic(Arc<JoinError>),
}Variants§
LocalClose
The local stream was closed, so we terminated the connection with the peer as no one is around to process the data.
IoError(Arc<Error>)
The IO raised an error during processing.
HeartbeatTimeout(Arc<Elapsed>)
We failed to receive a heartbeat in the set time frame.
BadHandshake
The peer sent us an invalide node id as the first payload.
ThreadPanic(Arc<JoinError>)
A Tokio task panic.
Trait Implementations§
Source§impl Clone for TcpDisconnectReason
impl Clone for TcpDisconnectReason
Source§fn clone(&self) -> TcpDisconnectReason
fn clone(&self) -> TcpDisconnectReason
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TcpDisconnectReason
impl !RefUnwindSafe for TcpDisconnectReason
impl Send for TcpDisconnectReason
impl Sync for TcpDisconnectReason
impl Unpin for TcpDisconnectReason
impl !UnwindSafe for TcpDisconnectReason
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