pub enum DisconnectReason {
Requested,
RemoteClosed,
PongTimeout,
Error(String),
}Expand description
Why the connection was closed.
Variants§
Requested
Handle::disconnect was called (or all handles were dropped).
RemoteClosed
The server closed the connection and reconnecting gave up.
PongTimeout
No heartbeat reply in time and reconnecting gave up.
Error(String)
A connection or protocol error and reconnecting gave up.
Trait Implementations§
Source§impl Clone for DisconnectReason
impl Clone for DisconnectReason
Auto Trait Implementations§
impl Freeze for DisconnectReason
impl RefUnwindSafe for DisconnectReason
impl Send for DisconnectReason
impl Sync for DisconnectReason
impl Unpin for DisconnectReason
impl UnsafeUnpin 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