#[repr(u8)]pub enum DisconnectReason {
Unspecified = 0,
ConnectionEstablishmentFailed = 1,
TimedOut = 2,
BondingKeysMismatch = 3,
}
Variants§
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 From<DisconnectReason> for u8
impl From<DisconnectReason> for u8
Source§fn from(enum_value: DisconnectReason) -> Self
fn from(enum_value: DisconnectReason) -> Self
Converts to this type from the input type.
Source§impl Hash for DisconnectReason
impl Hash for DisconnectReason
Source§impl PartialEq for DisconnectReason
impl PartialEq for DisconnectReason
Source§impl TryFrom<u8> for DisconnectReason
impl TryFrom<u8> for DisconnectReason
Source§type Error = TryFromPrimitiveError<DisconnectReason>
type Error = TryFromPrimitiveError<DisconnectReason>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for DisconnectReason
impl TryFromPrimitive for DisconnectReason
const NAME: &'static str = "DisconnectReason"
type Primitive = u8
type Error = TryFromPrimitiveError<DisconnectReason>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy 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