Enum mqtt::control::variable_header::protocol_level::ProtocolLevel [−][src]
#[repr(u8)]
pub enum ProtocolLevel {
Version310,
Version311,
Version50,
}
Expand description
Protocol level in MQTT (0x04
in v3.1.1)
Variants
Implementations
Trait Implementations
type Error = VariableHeaderError
fn decode_with<R: Read>(
reader: &mut R,
_rest: ()
) -> Result<ProtocolLevel, VariableHeaderError>
fn decode_with<R: Read>(
reader: &mut R,
_rest: ()
) -> Result<ProtocolLevel, VariableHeaderError>
Decodes object with additional data (or hints)
Auto Trait Implementations
impl RefUnwindSafe for ProtocolLevel
impl Send for ProtocolLevel
impl Sync for ProtocolLevel
impl Unpin for ProtocolLevel
impl UnwindSafe for ProtocolLevel
Blanket Implementations
Mutably borrows from an owned value. Read more