pub enum ReturnCode {
Success(QoS),
Failure,
}Expand description
Represents the return codes for a SubAck packet.
Variants§
Success(QoS)
Indicates a successful subscription with the granted QoS level.
Failure
Indicates that the subscription failed.
Trait Implementations§
Source§impl Clone for ReturnCode
impl Clone for ReturnCode
Source§fn clone(&self) -> ReturnCode
fn clone(&self) -> ReturnCode
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 moreimpl Copy for ReturnCode
Source§impl Debug for ReturnCode
impl Debug for ReturnCode
impl Eq for ReturnCode
Source§impl From<ReturnCode> for u8
impl From<ReturnCode> for u8
Source§fn from(value: ReturnCode) -> Self
fn from(value: ReturnCode) -> Self
Converts a ReturnCode into a u8 value.
Source§impl PartialEq for ReturnCode
impl PartialEq for ReturnCode
Source§fn eq(&self, other: &ReturnCode) -> bool
fn eq(&self, other: &ReturnCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReturnCode
Auto Trait Implementations§
impl Freeze for ReturnCode
impl RefUnwindSafe for ReturnCode
impl Send for ReturnCode
impl Sync for ReturnCode
impl Unpin for ReturnCode
impl UnsafeUnpin for ReturnCode
impl UnwindSafe for ReturnCode
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