pub enum DisconnectReason {
TransportClose,
MultipleHttpPollingError,
PacketParsingError,
TransportError,
HeartbeatTimeout,
ClosingServer,
}
Expand description
A DisconnectReason
represents the reason why a Socket
was closed.
Variants§
TransportClose
The client gracefully closed the connection
MultipleHttpPollingError
The client sent multiple polling requests at the same time (it is forbidden according to the engine.io protocol)
PacketParsingError
The client sent a bad request / the packet could not be parsed correctly
TransportError
An error occured in the transport layer (e.g. the client closed the connection without sending a close packet)
HeartbeatTimeout
The client did not respond to the heartbeat
ClosingServer
The server is being closed
Trait Implementations§
Source§impl Clone for DisconnectReason
impl Clone for DisconnectReason
Source§fn clone(&self) -> DisconnectReason
fn clone(&self) -> DisconnectReason
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 moreSource§impl Debug for DisconnectReason
impl Debug for DisconnectReason
Source§impl PartialEq for DisconnectReason
impl PartialEq for DisconnectReason
impl Eq for DisconnectReason
impl StructuralPartialEq 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 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