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