Struct mqtt::packet::suback::SubackPacketPayload [−][src]
pub struct SubackPacketPayload { /* fields omitted */ }
Methods
impl SubackPacketPayload
[src]
impl SubackPacketPayload
pub fn new(subs: Vec<SubscribeReturnCode>) -> SubackPacketPayload
[src]
pub fn new(subs: Vec<SubscribeReturnCode>) -> SubackPacketPayload
pub fn subscribes(&self) -> &[SubscribeReturnCode]
[src]
pub fn subscribes(&self) -> &[SubscribeReturnCode]
Trait Implementations
impl Debug for SubackPacketPayload
[src]
impl Debug for SubackPacketPayload
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 SubackPacketPayload
[src]
impl Eq for SubackPacketPayload
impl PartialEq for SubackPacketPayload
[src]
impl PartialEq for SubackPacketPayload
fn eq(&self, other: &SubackPacketPayload) -> bool
[src]
fn eq(&self, other: &SubackPacketPayload) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SubackPacketPayload) -> bool
[src]
fn ne(&self, other: &SubackPacketPayload) -> bool
This method tests for !=
.
impl Encodable for SubackPacketPayload
[src]
impl Encodable for SubackPacketPayload
type Err = SubackPacketPayloadError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), Self::Err>
[src]
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), Self::Err>
Encodes to writer
fn encoded_length(&self) -> u32
[src]
fn encoded_length(&self) -> u32
Length of bytes after encoded
impl Decodable for SubackPacketPayload
[src]
impl Decodable for SubackPacketPayload
type Err = SubackPacketPayloadError
type Cond = u32
fn decode_with<R: Read>(
reader: &mut R,
payload_len: Option<u32>
) -> Result<SubackPacketPayload, SubackPacketPayloadError>
[src]
fn decode_with<R: Read>(
reader: &mut R,
payload_len: Option<u32>
) -> Result<SubackPacketPayload, SubackPacketPayloadError>
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 SubackPacketPayload
impl Send for SubackPacketPayload
impl Sync for SubackPacketPayload
impl Sync for SubackPacketPayload