Struct mqtt::packet::pingreq::PingreqPacket [−][src]
pub struct PingreqPacket { /* fields omitted */ }Expand description
PINGREQ packet
Implementations
Trait Implementations
type DecodePacketError = Infallible
fn decode_packet<R: Read>(
_reader: &mut R,
fixed_header: FixedHeader
) -> Result<Self, PacketError<Self>>
fn decode_packet<R: Read>(
_reader: &mut R,
fixed_header: FixedHeader
) -> Result<Self, PacketError<Self>>
Decode packet given a FixedHeader
Returns the “default value” for a type. Read more
Get a reference to FixedHeader. All MQTT packet must have a fixed header.
Encodes packet data after fixed header, including variable headers and payload
Length in bytes for data after fixed header, including variable headers and payload
Performs the conversion.
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 PingreqPacket
impl Send for PingreqPacket
impl Sync for PingreqPacket
impl Unpin for PingreqPacket
impl UnwindSafe for PingreqPacket
Blanket Implementations
Mutably borrows from an owned value. Read more
type Error = PacketError<T>
type Cond = Option<FixedHeader>
Decodes object with additional data (or hints)