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