pub enum DisconnectionReason {
ReadError = 4_097,
WriteError = 4_098,
HeartbeatTimeout = 8_193,
HeartbeatSendError = 8_194,
ErrorMessageReceived = 8_195,
Unknown = 0,
}Variants§
ReadError = 4_097
WriteError = 4_098
HeartbeatTimeout = 8_193
HeartbeatSendError = 8_194
ErrorMessageReceived = 8_195
Unknown = 0
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DisconnectionReason
Source§impl Debug for DisconnectionReason
impl Debug for DisconnectionReason
Source§impl Display for DisconnectionReason
impl Display for DisconnectionReason
impl Eq for DisconnectionReason
Source§impl From<i32> for DisconnectionReason
impl From<i32> for DisconnectionReason
Source§fn from(reason: c_int) -> DisconnectionReason
fn from(reason: c_int) -> DisconnectionReason
Converts to this type from the input type.
Source§impl PartialEq for DisconnectionReason
impl PartialEq for DisconnectionReason
Source§fn eq(&self, other: &DisconnectionReason) -> bool
fn eq(&self, other: &DisconnectionReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DisconnectionReason
Auto Trait Implementations§
impl Freeze for DisconnectionReason
impl RefUnwindSafe for DisconnectionReason
impl Send for DisconnectionReason
impl Sync for DisconnectionReason
impl Unpin for DisconnectionReason
impl UnsafeUnpin 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