Struct mqtt::packet::pingresp::PingrespPacket [−][src]
pub struct PingrespPacket { /* fields omitted */ }
PINGRESP
packet
Methods
impl PingrespPacket
[src]
impl PingrespPacket
pub fn new() -> PingrespPacket
[src]
pub fn new() -> PingrespPacket
Trait Implementations
impl Debug for PingrespPacket
[src]
impl Debug for PingrespPacket
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 PingrespPacket
[src]
impl Eq for PingrespPacket
impl PartialEq for PingrespPacket
[src]
impl PartialEq for PingrespPacket
fn eq(&self, other: &PingrespPacket) -> bool
[src]
fn eq(&self, other: &PingrespPacket) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PingrespPacket) -> bool
[src]
fn ne(&self, other: &PingrespPacket) -> bool
This method tests for !=
.
impl Packet for PingrespPacket
[src]
impl Packet for PingrespPacket
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<PingrespPacket> for VariablePacket
[src]
impl From<PingrespPacket> for VariablePacket
fn from(pk: PingrespPacket) -> VariablePacket
[src]
fn from(pk: PingrespPacket) -> VariablePacket
Performs the conversion.
Auto Trait Implementations
impl Send for PingrespPacket
impl Send for PingrespPacket
impl Sync for PingrespPacket
impl Sync for PingrespPacket