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