Struct mqtt::packet::pubrec::PubrecPacket [] [src]

pub struct PubrecPacket {
    // some fields omitted
}

Methods

impl PubrecPacket
[src]

fn new(pkid: u16) -> PubrecPacket

fn packet_identifier(&self) -> u16

fn set_packet_identifier(&mut self, pkid: u16)

Trait Implementations

impl PartialEq for PubrecPacket
[src]

fn eq(&self, __arg_0: &PubrecPacket) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &PubrecPacket) -> bool

This method tests for !=.

impl Eq for PubrecPacket
[src]

impl Debug for PubrecPacket
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> Packet<'a> for PubrecPacket
[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>>

fn encoded_variable_headers_length(&self) -> u32

fn decode_packet<R: Read>(reader: &mut R, fixed_header: FixedHeader) -> Result<Self, PacketError<'a, Self>>