Struct mqtt::packet::pubrel::PubrelPacket
source · pub struct PubrelPacket { /* private fields */ }
Expand description
PUBREL
packet
Implementations§
source§impl PubrelPacket
impl PubrelPacket
pub fn new(pkid: u16) -> PubrelPacket
pub fn packet_identifier(&self) -> u16
pub fn set_packet_identifier(&mut self, pkid: u16)
Trait Implementations§
source§impl Clone for PubrelPacket
impl Clone for PubrelPacket
source§fn clone(&self) -> PubrelPacket
fn clone(&self) -> PubrelPacket
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 PubrelPacket
impl Debug for PubrelPacket
source§impl DecodablePacket for PubrelPacket
impl DecodablePacket for PubrelPacket
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 EncodablePacket for PubrelPacket
impl EncodablePacket for PubrelPacket
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<PubrelPacket> for VariablePacket
impl From<PubrelPacket> for VariablePacket
source§fn from(pk: PubrelPacket) -> VariablePacket
fn from(pk: PubrelPacket) -> VariablePacket
Converts to this type from the input type.
source§impl PartialEq for PubrelPacket
impl PartialEq for PubrelPacket
source§fn eq(&self, other: &PubrelPacket) -> bool
fn eq(&self, other: &PubrelPacket) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PubrelPacket
impl StructuralPartialEq for PubrelPacket
Auto Trait Implementations§
impl Freeze for PubrelPacket
impl RefUnwindSafe for PubrelPacket
impl Send for PubrelPacket
impl Sync for PubrelPacket
impl Unpin for PubrelPacket
impl UnwindSafe for PubrelPacket
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