Struct mqtt::packet::connack::ConnackPacket [−][src]
pub struct ConnackPacket { /* fields omitted */ }
CONNACK
packet
Methods
impl ConnackPacket
[src]
impl ConnackPacket
pub fn new(session_present: bool, ret_code: ConnectReturnCode) -> ConnackPacket
[src]
pub fn new(session_present: bool, ret_code: ConnectReturnCode) -> ConnackPacket
pub fn connack_flags(&self) -> ConnackFlags
[src]
pub fn connack_flags(&self) -> ConnackFlags
pub fn connect_return_code(&self) -> ConnectReturnCode
[src]
pub fn connect_return_code(&self) -> ConnectReturnCode
Trait Implementations
impl Debug for ConnackPacket
[src]
impl Debug for ConnackPacket
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 ConnackPacket
[src]
impl Eq for ConnackPacket
impl PartialEq for ConnackPacket
[src]
impl PartialEq for ConnackPacket
fn eq(&self, other: &ConnackPacket) -> bool
[src]
fn eq(&self, other: &ConnackPacket) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ConnackPacket) -> bool
[src]
fn ne(&self, other: &ConnackPacket) -> bool
This method tests for !=
.
impl Packet for ConnackPacket
[src]
impl Packet for ConnackPacket
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<ConnackPacket> for VariablePacket
[src]
impl From<ConnackPacket> for VariablePacket
fn from(pk: ConnackPacket) -> VariablePacket
[src]
fn from(pk: ConnackPacket) -> VariablePacket
Performs the conversion.
Auto Trait Implementations
impl Send for ConnackPacket
impl Send for ConnackPacket
impl Sync for ConnackPacket
impl Sync for ConnackPacket