Struct mqtt::packet::pingreq::PingreqPacket [−][src]
pub struct PingreqPacket { /* fields omitted */ }PINGREQ packet
Methods
impl PingreqPacket[src]
impl PingreqPacketpub fn new() -> PingreqPacket[src]
pub fn new() -> PingreqPacketTrait Implementations
impl Debug for PingreqPacket[src]
impl Debug for PingreqPacketfn 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 PingreqPacket[src]
impl Eq for PingreqPacketimpl PartialEq for PingreqPacket[src]
impl PartialEq for PingreqPacketfn eq(&self, other: &PingreqPacket) -> bool[src]
fn eq(&self, other: &PingreqPacket) -> boolThis 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) -> boolThis method tests for !=.
impl Packet for PingreqPacket[src]
impl Packet for PingreqPackettype 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<PingreqPacket> for VariablePacket[src]
impl From<PingreqPacket> for VariablePacketfn from(pk: PingreqPacket) -> VariablePacket[src]
fn from(pk: PingreqPacket) -> VariablePacketPerforms the conversion.
Auto Trait Implementations
impl Send for PingreqPacket
impl Send for PingreqPacketimpl Sync for PingreqPacket
impl Sync for PingreqPacket