Struct mqtt::control::variable_header::protocol_level::ProtocolLevel [−][src]
pub struct ProtocolLevel(pub u8);
Protocol level in MQTT (0x04
in v3.1.1)
Trait Implementations
impl Debug for ProtocolLevel
[src]
impl Debug for ProtocolLevel
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ProtocolLevel
[src]
impl Eq for ProtocolLevel
impl PartialEq for ProtocolLevel
[src]
impl PartialEq for ProtocolLevel
fn eq(&self, other: &ProtocolLevel) -> bool
[src]
fn eq(&self, other: &ProtocolLevel) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ProtocolLevel) -> bool
[src]
fn ne(&self, other: &ProtocolLevel) -> bool
This method tests for !=
.
impl Copy for ProtocolLevel
[src]
impl Copy for ProtocolLevel
impl Clone for ProtocolLevel
[src]
impl Clone for ProtocolLevel
fn clone(&self) -> ProtocolLevel
[src]
fn clone(&self) -> ProtocolLevel
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Encodable for ProtocolLevel
[src]
impl Encodable for ProtocolLevel
type Err = VariableHeaderError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>
[src]
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>
Encodes to writer
fn encoded_length(&self) -> u32
[src]
fn encoded_length(&self) -> u32
Length of bytes after encoded
impl Decodable for ProtocolLevel
[src]
impl Decodable for ProtocolLevel
type Err = VariableHeaderError
type Cond = ()
fn decode_with<R: Read>(
reader: &mut R,
_rest: Option<()>
) -> Result<ProtocolLevel, VariableHeaderError>
[src]
fn decode_with<R: Read>(
reader: &mut R,
_rest: Option<()>
) -> Result<ProtocolLevel, VariableHeaderError>
Decodes object with additional data (or hints)
fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>
[src]
fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>
Decodes object from reader
Auto Trait Implementations
impl Send for ProtocolLevel
impl Send for ProtocolLevel
impl Sync for ProtocolLevel
impl Sync for ProtocolLevel