Enum DisconnectReason
enum DisconnectReason {
UserRequested,
ConnectionLost,
ServerDisconnect,
ConnectRejected,
InvalidOptions,
}Expand description
Why a single connection attempt ended.
Variants§
UserRequested
The user called disconnect() or dropped all client handles.
ConnectionLost
The connection was lost due to an I/O or protocol error.
ServerDisconnect
The server sent a DISCONNECT packet.
ConnectRejected
CONNACK contained an error reason code.
InvalidOptions
Options could not be encoded (e.g. properties exceed max length).
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