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 ProtocolLevelfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for ProtocolLevel[src]
impl Eq for ProtocolLevelimpl PartialEq for ProtocolLevel[src]
impl PartialEq for ProtocolLevelfn eq(&self, other: &ProtocolLevel) -> bool[src]
fn eq(&self, other: &ProtocolLevel) -> boolThis 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) -> boolThis method tests for !=.
impl Copy for ProtocolLevel[src]
impl Copy for ProtocolLevelimpl Clone for ProtocolLevel[src]
impl Clone for ProtocolLevelfn clone(&self) -> ProtocolLevel[src]
fn clone(&self) -> ProtocolLevelReturns 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 ProtocolLeveltype 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) -> u32Length of bytes after encoded
impl Decodable for ProtocolLevel[src]
impl Decodable for ProtocolLeveltype 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 ProtocolLevelimpl Sync for ProtocolLevel
impl Sync for ProtocolLevel