#[repr(u8)]pub enum ProtocolLevel {
Version310 = 3,
Version311 = 4,
Version50 = 5,
}
Expand description
Protocol level in MQTT (0x04
in v3.1.1)
Variants§
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 Decodable for ProtocolLevel
impl Decodable for ProtocolLevel
type Error = ProtocolLevelError
type Cond = ()
Source§fn decode_with<R: Read>(
reader: &mut R,
_rest: (),
) -> Result<ProtocolLevel, ProtocolLevelError>
fn decode_with<R: Read>( reader: &mut R, _rest: (), ) -> Result<ProtocolLevel, ProtocolLevelError>
Decodes object with additional data (or hints)
Source§impl Encodable for ProtocolLevel
impl Encodable for ProtocolLevel
Source§impl PartialEq for ProtocolLevel
impl PartialEq 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