Struct mqtt::packet::subscribe::SubscribePacketPayload
[−]
[src]
pub struct SubscribePacketPayload { /* fields omitted */ }
Methods
impl SubscribePacketPayload
[src]
fn new(subs: Vec<(TopicFilter, QualityOfService)>) -> SubscribePacketPayload
fn subscribes(&self) -> &[(TopicFilter, QualityOfService)]
Trait Implementations
impl Debug for SubscribePacketPayload
[src]
impl Eq for SubscribePacketPayload
[src]
impl PartialEq for SubscribePacketPayload
[src]
fn eq(&self, __arg_0: &SubscribePacketPayload) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SubscribePacketPayload) -> bool
This method tests for !=
.
impl<'a> Encodable<'a> for SubscribePacketPayload
[src]
type Err = SubscribePacketPayloadError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), Self::Err>
fn encoded_length(&self) -> u32
impl<'a> Decodable<'a> for SubscribePacketPayload
[src]
type Err = SubscribePacketPayloadError
type Cond = u32
fn decode_with<R: Read>(reader: &mut R,
payload_len: Option<u32>)
-> Result<SubscribePacketPayload, SubscribePacketPayloadError>
payload_len: Option<u32>)
-> Result<SubscribePacketPayload, SubscribePacketPayloadError>