pub enum DisconnectReason {
Requested,
Left,
CodecViolation,
WriteStale,
Error(Error),
}Expand description
Explains why a client connection was disconnected.
Variants§
Requested
The reactor was asked to perform a disconnect.
Left
The peer left and the end of stream was reached.
CodecViolation
The peer violated the protocol in some way, usually by sending a malformed message.
WriteStale
The write side is stale, i.e. the peer is not reading the data we are sending.
Error(Error)
An IO error occurred.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DisconnectReason
impl !RefUnwindSafe for DisconnectReason
impl Send for DisconnectReason
impl Sync for DisconnectReason
impl Unpin for DisconnectReason
impl !UnwindSafe for DisconnectReason
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