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