Struct mqtt::packet::connect::ConnectPacketPayload [−][src]
pub struct ConnectPacketPayload { /* fields omitted */ }
Payloads for connect packet
Methods
impl ConnectPacketPayload
[src]
impl ConnectPacketPayload
pub fn new(client_identifier: String) -> ConnectPacketPayload
[src]
pub fn new(client_identifier: String) -> ConnectPacketPayload
Trait Implementations
impl Debug for ConnectPacketPayload
[src]
impl Debug for ConnectPacketPayload
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 ConnectPacketPayload
[src]
impl Eq for ConnectPacketPayload
impl PartialEq for ConnectPacketPayload
[src]
impl PartialEq for ConnectPacketPayload
fn eq(&self, other: &ConnectPacketPayload) -> bool
[src]
fn eq(&self, other: &ConnectPacketPayload) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ConnectPacketPayload) -> bool
[src]
fn ne(&self, other: &ConnectPacketPayload) -> bool
This method tests for !=
.
impl Encodable for ConnectPacketPayload
[src]
impl Encodable for ConnectPacketPayload
type Err = ConnectPacketPayloadError
fn encode<W: Write>(
&self,
writer: &mut W
) -> Result<(), ConnectPacketPayloadError>
[src]
fn encode<W: Write>(
&self,
writer: &mut W
) -> Result<(), ConnectPacketPayloadError>
Encodes to writer
fn encoded_length(&self) -> u32
[src]
fn encoded_length(&self) -> u32
Length of bytes after encoded
impl Decodable for ConnectPacketPayload
[src]
impl Decodable for ConnectPacketPayload
type Err = ConnectPacketPayloadError
type Cond = ConnectFlags
fn decode_with<R: Read>(
reader: &mut R,
rest: Option<ConnectFlags>
) -> Result<ConnectPacketPayload, ConnectPacketPayloadError>
[src]
fn decode_with<R: Read>(
reader: &mut R,
rest: Option<ConnectFlags>
) -> Result<ConnectPacketPayload, ConnectPacketPayloadError>
Decodes object with additional data (or hints)
fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>
[src]
fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>
Decodes object from reader
Auto Trait Implementations
impl Send for ConnectPacketPayload
impl Send for ConnectPacketPayload
impl Sync for ConnectPacketPayload
impl Sync for ConnectPacketPayload