Struct mqtt::packet::pingreq::PingreqPacket [−][src]
pub struct PingreqPacket { /* fields omitted */ }
PINGREQ
packet
Methods
impl PingreqPacket
[src]
impl PingreqPacket
pub fn new() -> PingreqPacket
[src]
pub fn new() -> PingreqPacket
Trait Implementations
impl Debug for PingreqPacket
[src]
impl Debug for PingreqPacket
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for PingreqPacket
[src]
impl Eq for PingreqPacket
impl PartialEq for PingreqPacket
[src]
impl PartialEq for PingreqPacket
fn eq(&self, other: &PingreqPacket) -> bool
[src]
fn eq(&self, other: &PingreqPacket) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PingreqPacket) -> bool
[src]
fn ne(&self, other: &PingreqPacket) -> bool
This method tests for !=
.
impl Packet for PingreqPacket
[src]
impl Packet for PingreqPacket
type Payload = ()
fn fixed_header(&self) -> &FixedHeader
[src]
fn fixed_header(&self) -> &FixedHeader
Get a FixedHeader
of this packet
fn payload(self) -> Self::Payload
[src]
fn payload(self) -> Self::Payload
Get the payload
fn payload_ref(&self) -> &Self::Payload
[src]
fn payload_ref(&self) -> &Self::Payload
Get a borrow of payload
fn encode_variable_headers<W: Write>(
&self,
_writer: &mut W
) -> Result<(), PacketError<Self>>
[src]
fn encode_variable_headers<W: Write>(
&self,
_writer: &mut W
) -> Result<(), PacketError<Self>>
Encode variable headers to writer
fn encoded_variable_headers_length(&self) -> u32
[src]
fn encoded_variable_headers_length(&self) -> u32
Length of bytes after encoding variable header
fn decode_packet<R: Read>(
_reader: &mut R,
fixed_header: FixedHeader
) -> Result<Self, PacketError<Self>>
[src]
fn decode_packet<R: Read>(
_reader: &mut R,
fixed_header: FixedHeader
) -> Result<Self, PacketError<Self>>
Deocde packet with a FixedHeader
impl From<PingreqPacket> for VariablePacket
[src]
impl From<PingreqPacket> for VariablePacket
fn from(pk: PingreqPacket) -> VariablePacket
[src]
fn from(pk: PingreqPacket) -> VariablePacket
Performs the conversion.
Auto Trait Implementations
impl Send for PingreqPacket
impl Send for PingreqPacket
impl Sync for PingreqPacket
impl Sync for PingreqPacket