Struct mqtt::packet::pingreq::PingreqPacket
source · pub struct PingreqPacket { /* private fields */ }
Expand description
PINGREQ
packet
Implementations§
source§impl PingreqPacket
impl PingreqPacket
pub fn new() -> PingreqPacket
Trait Implementations§
source§impl Clone for PingreqPacket
impl Clone for PingreqPacket
source§fn clone(&self) -> PingreqPacket
fn clone(&self) -> PingreqPacket
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PingreqPacket
impl Debug for PingreqPacket
source§impl DecodablePacket for PingreqPacket
impl DecodablePacket for PingreqPacket
type DecodePacketError = Infallible
source§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
source§impl Default for PingreqPacket
impl Default for PingreqPacket
source§fn default() -> PingreqPacket
fn default() -> PingreqPacket
Returns the “default value” for a type. Read more
source§impl EncodablePacket for PingreqPacket
impl EncodablePacket for PingreqPacket
source§fn fixed_header(&self) -> &FixedHeader
fn fixed_header(&self) -> &FixedHeader
Get a reference to
FixedHeader
. All MQTT packet must have a fixed header.source§fn encode_packet<W: Write>(&self, writer: &mut W) -> Result<()>
fn encode_packet<W: Write>(&self, writer: &mut W) -> Result<()>
Encodes packet data after fixed header, including variable headers and payload
source§fn encoded_packet_length(&self) -> u32
fn encoded_packet_length(&self) -> u32
Length in bytes for data after fixed header, including variable headers and payload
source§impl From<PingreqPacket> for VariablePacket
impl From<PingreqPacket> for VariablePacket
source§fn from(pk: PingreqPacket) -> VariablePacket
fn from(pk: PingreqPacket) -> VariablePacket
Converts to this type from the input type.
source§impl PartialEq for PingreqPacket
impl PartialEq for PingreqPacket
source§fn eq(&self, other: &PingreqPacket) -> bool
fn eq(&self, other: &PingreqPacket) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PingreqPacket
impl StructuralPartialEq for PingreqPacket
Auto Trait Implementations§
impl Freeze for PingreqPacket
impl RefUnwindSafe for PingreqPacket
impl Send for PingreqPacket
impl Sync for PingreqPacket
impl Unpin for PingreqPacket
impl UnwindSafe for PingreqPacket
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more