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