#[non_exhaustive]pub enum SubReasonCode {
UnspecifiedError,
ImplementationSpecificError,
NotAuthorized,
TopicFilterInvalid,
PacketIdentifierInUse,
QuotaExceeded,
SharedSubscriptionsNotSupported,
SubscriptionIdentifiersNotSupported,
WildcardSubscriptionsNotSupported,
}Expand description
Reason a subscription was rejected by the broker (the failure half of a
SUBACK reason code — Success is a SubscriptionGrant, not a loss).
#[non_exhaustive]: the MQTT 5 reason-code registry may grow, and the v4
mapping only distinguishes success from a single 0x80 failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnspecifiedError
Unspecified error (0x80); the only failure v4 can report.
ImplementationSpecificError
The subscription was not accepted for an implementation-specific reason.
NotAuthorized
The client is not authorized to make this subscription.
TopicFilterInvalid
The topic filter is correctly formed but not accepted by this broker.
PacketIdentifierInUse
The packet identifier is already in use.
QuotaExceeded
An implementation or administrative quota was exceeded.
The broker does not support shared subscriptions.
SubscriptionIdentifiersNotSupported
The broker does not support subscription identifiers.
WildcardSubscriptionsNotSupported
The broker does not support wildcard subscriptions.
Trait Implementations§
Source§impl Clone for SubReasonCode
impl Clone for SubReasonCode
Source§fn clone(&self) -> SubReasonCode
fn clone(&self) -> SubReasonCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SubReasonCode
Source§impl Debug for SubReasonCode
impl Debug for SubReasonCode
impl Eq for SubReasonCode
Source§impl PartialEq for SubReasonCode
impl PartialEq for SubReasonCode
impl StructuralPartialEq for SubReasonCode
Auto Trait Implementations§
impl Freeze for SubReasonCode
impl RefUnwindSafe for SubReasonCode
impl Send for SubReasonCode
impl Sync for SubReasonCode
impl Unpin for SubReasonCode
impl UnsafeUnpin for SubReasonCode
impl UnwindSafe for SubReasonCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.