#[repr(u8)]pub enum SubscribeReasonCode {
Success = 0,
GrantedQos1 = 1,
GrantedQos2 = 2,
UnspecifiedError = 128,
ImplementationSpecificError = 131,
NotAuthorized = 135,
TopicFilterInvalid = 143,
PacketIdentifierInUse = 145,
QuotaExceeded = 151,
SharedSubscriptionsNotSupported = 158,
SubscriptionIdentifiersNotSupported = 161,
WildcardSubscriptionsNotSupported = 162,
}Variants§
Success = 0
GrantedQos1 = 1
GrantedQos2 = 2
UnspecifiedError = 128
ImplementationSpecificError = 131
NotAuthorized = 135
TopicFilterInvalid = 143
PacketIdentifierInUse = 145
QuotaExceeded = 151
SubscriptionIdentifiersNotSupported = 161
WildcardSubscriptionsNotSupported = 162
Implementations§
Trait Implementations§
Source§impl Clone for SubscribeReasonCode
impl Clone for SubscribeReasonCode
Source§fn clone(&self) -> SubscribeReasonCode
fn clone(&self) -> SubscribeReasonCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubscribeReasonCode
impl Debug for SubscribeReasonCode
Source§impl Display for SubscribeReasonCode
impl Display for SubscribeReasonCode
Source§impl Format for SubscribeReasonCode
Available on crate feature defmt only.
impl Format for SubscribeReasonCode
Available on crate feature
defmt only.Source§impl From<SubscribeReasonCode> for ReasonCode
impl From<SubscribeReasonCode> for ReasonCode
Source§fn from(value: SubscribeReasonCode) -> Self
fn from(value: SubscribeReasonCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SubscribeReasonCode
impl PartialEq for SubscribeReasonCode
Source§fn eq(&self, other: &SubscribeReasonCode) -> bool
fn eq(&self, other: &SubscribeReasonCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Read<'a> for SubscribeReasonCode
impl<'a> Read<'a> for SubscribeReasonCode
Source§impl TryFrom<ReasonCode> for SubscribeReasonCode
impl TryFrom<ReasonCode> for SubscribeReasonCode
Source§type Error = PacketReadError
type Error = PacketReadError
The type returned in the event of a conversion error.
Source§impl TryFrom<u8> for SubscribeReasonCode
impl TryFrom<u8> for SubscribeReasonCode
Source§impl Write for SubscribeReasonCode
impl Write for SubscribeReasonCode
impl Copy for SubscribeReasonCode
impl StructuralPartialEq for SubscribeReasonCode
Auto Trait Implementations§
impl Freeze for SubscribeReasonCode
impl RefUnwindSafe for SubscribeReasonCode
impl Send for SubscribeReasonCode
impl Sync for SubscribeReasonCode
impl Unpin for SubscribeReasonCode
impl UnsafeUnpin for SubscribeReasonCode
impl UnwindSafe for SubscribeReasonCode
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