Enum mqtt::packet::suback::SubscribeReturnCode
source · #[repr(u8)]pub enum SubscribeReturnCode {
MaximumQoSLevel0 = 0,
MaximumQoSLevel1 = 1,
MaximumQoSLevel2 = 2,
Failure = 128,
}
Expand description
Subscribe code
Variants§
Trait Implementations§
source§impl Clone for SubscribeReturnCode
impl Clone for SubscribeReturnCode
source§fn clone(&self) -> SubscribeReturnCode
fn clone(&self) -> SubscribeReturnCode
Returns a copy 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 SubscribeReturnCode
impl Debug for SubscribeReturnCode
source§impl From<QualityOfService> for SubscribeReturnCode
impl From<QualityOfService> for SubscribeReturnCode
source§fn from(qos: QualityOfService) -> Self
fn from(qos: QualityOfService) -> Self
Converts to this type from the input type.
source§impl PartialEq for SubscribeReturnCode
impl PartialEq for SubscribeReturnCode
source§fn eq(&self, other: &SubscribeReturnCode) -> bool
fn eq(&self, other: &SubscribeReturnCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SubscribeReturnCode
impl PartialOrd for SubscribeReturnCode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SubscribeReturnCode
impl Eq for SubscribeReturnCode
impl StructuralPartialEq for SubscribeReturnCode
Auto Trait Implementations§
impl Freeze for SubscribeReturnCode
impl RefUnwindSafe for SubscribeReturnCode
impl Send for SubscribeReturnCode
impl Sync for SubscribeReturnCode
impl Unpin for SubscribeReturnCode
impl UnwindSafe for SubscribeReturnCode
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