Struct mqtt::control::variable_header::ProtocolName [−][src]
pub struct ProtocolName(pub String);Expand description
Protocol name in variable header
Example
7 3 0
+--------------------------+--------------------------+
| Length MSB (0) |
| Length LSB (4) |
| 0100 | 1101 | 'M'
| 0101 | 0001 | 'Q'
| 0101 | 0100 | 'T'
| 0101 | 0100 | 'T'
+--------------------------+--------------------------+Tuple Fields
0: StringTrait Implementations
type Error = VariableHeaderError
fn decode_with<R: Read>(
reader: &mut R,
_rest: ()
) -> Result<ProtocolName, VariableHeaderError>
fn decode_with<R: Read>(
reader: &mut R,
_rest: ()
) -> Result<ProtocolName, VariableHeaderError>
Decodes object with additional data (or hints)
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ProtocolName
impl Send for ProtocolName
impl Sync for ProtocolName
impl Unpin for ProtocolName
impl UnwindSafe for ProtocolName
Blanket Implementations
Mutably borrows from an owned value. Read more