#[repr(u8)]pub enum AuthReasonCode {
Success = 0,
ContinueAuthentication = 24,
ReAuthenticate = 25,
}
Variants§
Implementations§
Source§impl AuthReasonCode
impl AuthReasonCode
pub fn is_success(&self) -> bool
pub fn is_failure(&self) -> bool
Trait Implementations§
Source§impl Clone for AuthReasonCode
impl Clone for AuthReasonCode
Source§fn clone(&self) -> AuthReasonCode
fn clone(&self) -> AuthReasonCode
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 AuthReasonCode
impl Debug for AuthReasonCode
Source§impl Display for AuthReasonCode
impl Display for AuthReasonCode
Source§impl From<AuthReasonCode> for MqttError
impl From<AuthReasonCode> for MqttError
Source§fn from(code: AuthReasonCode) -> Self
fn from(code: AuthReasonCode) -> Self
Converts to this type from the input type.
Source§impl Hash for AuthReasonCode
impl Hash for AuthReasonCode
Source§impl PartialEq for AuthReasonCode
impl PartialEq for AuthReasonCode
Source§impl Serialize for AuthReasonCode
impl Serialize for AuthReasonCode
Source§impl TryFrom<u8> for AuthReasonCode
impl TryFrom<u8> for AuthReasonCode
Source§type Error = TryFromPrimitiveError<AuthReasonCode>
type Error = TryFromPrimitiveError<AuthReasonCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for AuthReasonCode
impl TryFromPrimitive for AuthReasonCode
const NAME: &'static str = "AuthReasonCode"
type Primitive = u8
type Error = TryFromPrimitiveError<AuthReasonCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for AuthReasonCode
impl Eq for AuthReasonCode
impl StructuralPartialEq for AuthReasonCode
Auto Trait Implementations§
impl Freeze for AuthReasonCode
impl RefUnwindSafe for AuthReasonCode
impl Send for AuthReasonCode
impl Sync for AuthReasonCode
impl Unpin for AuthReasonCode
impl UnwindSafe for AuthReasonCode
Blanket Implementations§
Source§impl<T> AsConcrete<T> for T
impl<T> AsConcrete<T> for T
fn as_concrete(&self) -> Option<&T>
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.