Struct mqtt::packet::pubrel::PubrelPacket
[−]
[src]
pub struct PubrelPacket { /* fields omitted */ }
Methods
impl PubrelPacket
[src]
fn new(pkid: u16) -> PubrelPacket
fn packet_identifier(&self) -> u16
fn set_packet_identifier(&mut self, pkid: u16)
Trait Implementations
impl Debug for PubrelPacket
[src]
impl Eq for PubrelPacket
[src]
impl PartialEq for PubrelPacket
[src]
fn eq(&self, __arg_0: &PubrelPacket) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PubrelPacket) -> bool
This method tests for !=
.
impl<'a> Packet<'a> for PubrelPacket
[src]
type Payload = ()
fn fixed_header(&self) -> &FixedHeader
fn payload(&self) -> &Self::Payload
fn encode_variable_headers<W: Write>(&self,
writer: &mut W)
-> Result<(), PacketError<'a, Self>>
writer: &mut W)
-> Result<(), PacketError<'a, Self>>
fn encoded_variable_headers_length(&self) -> u32
fn decode_packet<R: Read>(reader: &mut R,
fixed_header: FixedHeader)
-> Result<Self, PacketError<'a, Self>>
fixed_header: FixedHeader)
-> Result<Self, PacketError<'a, Self>>