pub enum ClientDisconnectReason {
PendingMessageConfirmationTimeout,
MessageReceiveTimeout,
WriteUnlockTimeout,
ByteSendError(Error),
ManualDisconnect,
DisconnectRequest(DeserializedMessage),
}Available on crate feature
server only.Expand description
Possible reasons to be disconnected from some client.
Used after the client was already disconnected.
Variants§
PendingMessageConfirmationTimeout
Client was disconnected due to a timeout waiting for message confirmation.
MessageReceiveTimeout
Client was disconnected because it did not receive messages within the expected time frame.
WriteUnlockTimeout
Client was disconnected due to a timeout while trying to acquire a write lock.
ByteSendError(Error)
Client was disconnected because of an error while sending bytes.
ManualDisconnect
Client was manually disconnected.
DisconnectRequest(DeserializedMessage)
Client disconnected itself.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientDisconnectReason
impl !RefUnwindSafe for ClientDisconnectReason
impl Send for ClientDisconnectReason
impl Sync for ClientDisconnectReason
impl Unpin for ClientDisconnectReason
impl !UnwindSafe for ClientDisconnectReason
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more