#[repr(u8)]pub enum ProtocolLevel {
V3 = 3,
V4 = 4,
V5 = 5,
}
Expand description
Current version of MQTT protocol can be:
- 3.1
- 3.1.1
- 5.0
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ProtocolLevel
impl Clone for ProtocolLevel
Source§fn clone(&self) -> ProtocolLevel
fn clone(&self) -> ProtocolLevel
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 ProtocolLevel
impl Debug for ProtocolLevel
Source§impl DecodePacket for ProtocolLevel
impl DecodePacket for ProtocolLevel
Source§impl Default for ProtocolLevel
impl Default for ProtocolLevel
Source§fn default() -> ProtocolLevel
fn default() -> ProtocolLevel
Returns the “default value” for a type. Read more
Source§impl EncodePacket for ProtocolLevel
impl EncodePacket for ProtocolLevel
Source§impl Hash for ProtocolLevel
impl Hash for ProtocolLevel
Source§impl Ord for ProtocolLevel
impl Ord for ProtocolLevel
Source§fn cmp(&self, other: &ProtocolLevel) -> Ordering
fn cmp(&self, other: &ProtocolLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProtocolLevel
impl PartialEq for ProtocolLevel
Source§impl PartialOrd for ProtocolLevel
impl PartialOrd for ProtocolLevel
Source§impl TryFrom<u8> for ProtocolLevel
impl TryFrom<u8> for ProtocolLevel
impl Copy for ProtocolLevel
impl Eq for ProtocolLevel
impl StructuralPartialEq for ProtocolLevel
Auto Trait Implementations§
impl Freeze for ProtocolLevel
impl RefUnwindSafe for ProtocolLevel
impl Send for ProtocolLevel
impl Sync for ProtocolLevel
impl Unpin for ProtocolLevel
impl UnwindSafe for ProtocolLevel
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