Struct mqtt::control::variable_header::ProtocolName [] [src]

pub struct ProtocolName(pub String);

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'
+--------------------------+--------------------------+

Trait Implementations

impl Debug for ProtocolName
[src]

Formats the value using the given formatter.

impl Eq for ProtocolName
[src]

impl PartialEq for ProtocolName
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for ProtocolName
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Encodable<'a> for ProtocolName
[src]

Encodes to writer

Length of bytes after encoded

impl<'a> Decodable<'a> for ProtocolName
[src]

Decodes object with additional data (or hints)

Decodes object from reader