pub enum DisconnectionReason {
NetworkError(String),
ServerError(String),
HeartbeatTimeout,
UserRequested,
Unknown,
}
Expand description
Reason for disconnection
Variants§
NetworkError(String)
Network-related error occurred
ServerError(String)
Server-side error occurred
HeartbeatTimeout
Heartbeat timeout was reached
UserRequested
Disconnection was requested by the user
Unknown
Unknown or unspecified reason
Trait Implementations§
Source§impl Clone for DisconnectionReason
impl Clone for DisconnectionReason
Source§fn clone(&self) -> DisconnectionReason
fn clone(&self) -> DisconnectionReason
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 moreAuto Trait Implementations§
impl Freeze for DisconnectionReason
impl RefUnwindSafe for DisconnectionReason
impl Send for DisconnectionReason
impl Sync for DisconnectionReason
impl Unpin for DisconnectionReason
impl UnwindSafe for DisconnectionReason
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