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