Struct mqtt::packet::pingresp::PingrespPacket [−][src]
pub struct PingrespPacket { /* fields omitted */ }PINGRESP packet
Methods
impl PingrespPacket[src]
impl PingrespPacketpub fn new() -> PingrespPacket[src]
pub fn new() -> PingrespPacketTrait Implementations
impl Debug for PingrespPacket[src]
impl Debug for PingrespPacketfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for PingrespPacket[src]
impl Eq for PingrespPacketimpl PartialEq for PingrespPacket[src]
impl PartialEq for PingrespPacketfn eq(&self, other: &PingrespPacket) -> bool[src]
fn eq(&self, other: &PingrespPacket) -> boolThis 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) -> boolThis method tests for !=.
impl Packet for PingrespPacket[src]
impl Packet for PingrespPackettype Payload = ()
fn fixed_header(&self) -> &FixedHeader[src]
fn fixed_header(&self) -> &FixedHeaderGet a FixedHeader of this packet
fn payload(self) -> Self::Payload[src]
fn payload(self) -> Self::PayloadGet the payload
fn payload_ref(&self) -> &Self::Payload[src]
fn payload_ref(&self) -> &Self::PayloadGet 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) -> u32Length 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 VariablePacketfn from(pk: PingrespPacket) -> VariablePacket[src]
fn from(pk: PingrespPacket) -> VariablePacketPerforms the conversion.
Auto Trait Implementations
impl Send for PingrespPacket
impl Send for PingrespPacketimpl Sync for PingrespPacket
impl Sync for PingrespPacket