#[repr(u8)]pub enum ConnackCode {
Accepted = 0,
UnacceptableProtocolVersion = 1,
IdentifierRejected = 2,
ServerUnavailable = 3,
BadUsernamePassword = 4,
NotAuthorized = 5,
}Expand description
CONNACK return codes
Variants§
Accepted = 0
UnacceptableProtocolVersion = 1
IdentifierRejected = 2
BadUsernamePassword = 4
NotAuthorized = 5
Trait Implementations§
Source§impl Clone for ConnackCode
impl Clone for ConnackCode
Source§fn clone(&self) -> ConnackCode
fn clone(&self) -> ConnackCode
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 ConnackCode
impl Debug for ConnackCode
Source§impl From<ConnackCode> for u8
impl From<ConnackCode> for u8
Source§fn from(code: ConnackCode) -> u8
fn from(code: ConnackCode) -> u8
Converts to this type from the input type.
Source§impl PartialEq for ConnackCode
impl PartialEq for ConnackCode
impl Copy for ConnackCode
impl Eq for ConnackCode
impl StructuralPartialEq for ConnackCode
Auto Trait Implementations§
impl Freeze for ConnackCode
impl RefUnwindSafe for ConnackCode
impl Send for ConnackCode
impl Sync for ConnackCode
impl Unpin for ConnackCode
impl UnsafeUnpin for ConnackCode
impl UnwindSafe for ConnackCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.