Struct mqtt::packet::pubcomp::PubcompPacket [−][src]
pub struct PubcompPacket { /* fields omitted */ }
PUBCOMP
packet
Methods
impl PubcompPacket
[src]
impl PubcompPacket
pub fn new(pkid: u16) -> PubcompPacket
[src]
pub fn new(pkid: u16) -> PubcompPacket
pub fn packet_identifier(&self) -> u16
[src]
pub fn packet_identifier(&self) -> u16
pub fn set_packet_identifier(&mut self, pkid: u16)
[src]
pub fn set_packet_identifier(&mut self, pkid: u16)
Trait Implementations
impl Debug for PubcompPacket
[src]
impl Debug for PubcompPacket
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for PubcompPacket
[src]
impl Eq for PubcompPacket
impl PartialEq for PubcompPacket
[src]
impl PartialEq for PubcompPacket
fn eq(&self, other: &PubcompPacket) -> bool
[src]
fn eq(&self, other: &PubcompPacket) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PubcompPacket) -> bool
[src]
fn ne(&self, other: &PubcompPacket) -> bool
This method tests for !=
.
impl Packet for PubcompPacket
[src]
impl Packet for PubcompPacket
type Payload = ()
fn fixed_header(&self) -> &FixedHeader
[src]
fn fixed_header(&self) -> &FixedHeader
Get a FixedHeader
of this packet
fn payload(self) -> Self::Payload
[src]
fn payload(self) -> Self::Payload
Get the payload
fn payload_ref(&self) -> &Self::Payload
[src]
fn payload_ref(&self) -> &Self::Payload
Get 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) -> u32
Length 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<PubcompPacket> for VariablePacket
[src]
impl From<PubcompPacket> for VariablePacket
fn from(pk: PubcompPacket) -> VariablePacket
[src]
fn from(pk: PubcompPacket) -> VariablePacket
Performs the conversion.
Auto Trait Implementations
impl Send for PubcompPacket
impl Send for PubcompPacket
impl Sync for PubcompPacket
impl Sync for PubcompPacket