Struct mqtt::packet::pingresp::PingrespPacket
source · pub struct PingrespPacket { /* private fields */ }
Expand description
PINGRESP
packet
Implementations§
source§impl PingrespPacket
impl PingrespPacket
pub fn new() -> PingrespPacket
Trait Implementations§
source§impl Clone for PingrespPacket
impl Clone for PingrespPacket
source§fn clone(&self) -> PingrespPacket
fn clone(&self) -> PingrespPacket
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 PingrespPacket
impl Debug for PingrespPacket
source§impl DecodablePacket for PingrespPacket
impl DecodablePacket for PingrespPacket
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 PingrespPacket
impl Default for PingrespPacket
source§fn default() -> PingrespPacket
fn default() -> PingrespPacket
Returns the “default value” for a type. Read more
source§impl EncodablePacket for PingrespPacket
impl EncodablePacket for PingrespPacket
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<PingrespPacket> for VariablePacket
impl From<PingrespPacket> for VariablePacket
source§fn from(pk: PingrespPacket) -> VariablePacket
fn from(pk: PingrespPacket) -> VariablePacket
Converts to this type from the input type.
source§impl PartialEq for PingrespPacket
impl PartialEq for PingrespPacket
source§fn eq(&self, other: &PingrespPacket) -> bool
fn eq(&self, other: &PingrespPacket) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PingrespPacket
impl StructuralPartialEq for PingrespPacket
Auto Trait Implementations§
impl Freeze for PingrespPacket
impl RefUnwindSafe for PingrespPacket
impl Send for PingrespPacket
impl Sync for PingrespPacket
impl Unpin for PingrespPacket
impl UnwindSafe for PingrespPacket
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