Struct mqtt::packet::subscribe::SubscribePacketPayload [−][src]
pub struct SubscribePacketPayload { /* fields omitted */ }Payload of subscribe packet
Methods
impl SubscribePacketPayload[src]
impl SubscribePacketPayloadpub fn new(subs: Vec<(TopicFilter, QualityOfService)>) -> SubscribePacketPayload[src]
pub fn new(subs: Vec<(TopicFilter, QualityOfService)>) -> SubscribePacketPayloadpub fn subscribes(&self) -> &[(TopicFilter, QualityOfService)][src]
pub fn subscribes(&self) -> &[(TopicFilter, QualityOfService)]Trait Implementations
impl Debug for SubscribePacketPayload[src]
impl Debug for SubscribePacketPayloadfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for SubscribePacketPayload[src]
impl Eq for SubscribePacketPayloadimpl PartialEq for SubscribePacketPayload[src]
impl PartialEq for SubscribePacketPayloadfn eq(&self, other: &SubscribePacketPayload) -> bool[src]
fn eq(&self, other: &SubscribePacketPayload) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SubscribePacketPayload) -> bool[src]
fn ne(&self, other: &SubscribePacketPayload) -> boolThis method tests for !=.
impl Encodable for SubscribePacketPayload[src]
impl Encodable for SubscribePacketPayloadtype Err = SubscribePacketPayloadError
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) -> u32Length of bytes after encoded
impl Decodable for SubscribePacketPayload[src]
impl Decodable for SubscribePacketPayloadtype Err = SubscribePacketPayloadError
type Cond = u32
fn decode_with<R: Read>(
reader: &mut R,
payload_len: Option<u32>
) -> Result<SubscribePacketPayload, SubscribePacketPayloadError>[src]
fn decode_with<R: Read>(
reader: &mut R,
payload_len: Option<u32>
) -> Result<SubscribePacketPayload, SubscribePacketPayloadError>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 SubscribePacketPayload
impl Send for SubscribePacketPayloadimpl Sync for SubscribePacketPayload
impl Sync for SubscribePacketPayload