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