Struct mqtt::control::variable_header::ProtocolName
source · 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: String
Trait Implementations§
source§impl Clone for ProtocolName
impl Clone for ProtocolName
source§fn clone(&self) -> ProtocolName
fn clone(&self) -> ProtocolName
Returns a copy 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 ProtocolName
impl Debug for ProtocolName
source§impl Decodable for ProtocolName
impl Decodable for ProtocolName
type Error = VariableHeaderError
type Cond = ()
source§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)
source§impl Encodable for ProtocolName
impl Encodable for ProtocolName
source§impl PartialEq for ProtocolName
impl PartialEq for ProtocolName
source§fn eq(&self, other: &ProtocolName) -> bool
fn eq(&self, other: &ProtocolName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProtocolName
impl StructuralPartialEq for ProtocolName
Auto Trait Implementations§
impl Freeze for ProtocolName
impl RefUnwindSafe for ProtocolName
impl Send for ProtocolName
impl Sync for ProtocolName
impl Unpin for ProtocolName
impl UnwindSafe for ProtocolName
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