#[repr(u8)]pub enum UnsubscribeReasonCode {
Success = 0,
NoSubscriptionExisted = 17,
UnspecifiedError = 128,
ImplementationSpecificError = 131,
NotAuthorized = 135,
TopicFilterInvalid = 143,
PacketIdentifierInUse = 145,
}
Expand description
Reason code for UNSUBACK packet.
Dec | Hex | Reason Code name | Description |
---|---|---|---|
0 | 0x00 | Success | The subscription is deleted. |
17 | 0x11 | No subscription existed | No matching Topic Filter is being used by the Client. |
128 | 0x80 | Unspecified error | The unsubscribe could not be completed and |
the Server either does not wish to reveal the reason or none of the other Reason Codes apply. | |||
131 | 0x83 | Implementation specific error | The UNSUBSCRIBE is valid but the Server does not accept it. |
135 | 0x87 | Not authorized | The Client is not authorized to unsubscribe. |
143 | 0x8F | Topic Filter invalid | The Topic Filter is correctly formed but is not allowed for this Client. |
145 | 0x91 | Packet Identifier in use | The specified Packet Identifier is already in use. |
Variants§
Success = 0
NoSubscriptionExisted = 17
UnspecifiedError = 128
ImplementationSpecificError = 131
NotAuthorized = 135
TopicFilterInvalid = 143
PacketIdentifierInUse = 145
Implementations§
Trait Implementations§
Source§impl Clone for UnsubscribeReasonCode
impl Clone for UnsubscribeReasonCode
Source§fn clone(&self) -> UnsubscribeReasonCode
fn clone(&self) -> UnsubscribeReasonCode
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 UnsubscribeReasonCode
impl Debug for UnsubscribeReasonCode
Source§impl Hash for UnsubscribeReasonCode
impl Hash for UnsubscribeReasonCode
Source§impl PartialEq for UnsubscribeReasonCode
impl PartialEq for UnsubscribeReasonCode
impl Copy for UnsubscribeReasonCode
impl Eq for UnsubscribeReasonCode
impl StructuralPartialEq for UnsubscribeReasonCode
Auto Trait Implementations§
impl Freeze for UnsubscribeReasonCode
impl RefUnwindSafe for UnsubscribeReasonCode
impl Send for UnsubscribeReasonCode
impl Sync for UnsubscribeReasonCode
impl Unpin for UnsubscribeReasonCode
impl UnwindSafe for UnsubscribeReasonCode
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