Struct mqtt::packet::unsubscribe::UnsubscribePacket [−][src]
pub struct UnsubscribePacket { /* fields omitted */ }UNSUBSCRIBE packet
Methods
impl UnsubscribePacket[src]
impl UnsubscribePacketpub fn new(pkid: u16, subscribes: Vec<TopicFilter>) -> UnsubscribePacket[src]
pub fn new(pkid: u16, subscribes: Vec<TopicFilter>) -> UnsubscribePacketpub fn packet_identifier(&self) -> u16[src]
pub fn packet_identifier(&self) -> u16pub fn set_packet_identifier(&mut self, pkid: u16)[src]
pub fn set_packet_identifier(&mut self, pkid: u16)Trait Implementations
impl Debug for UnsubscribePacket[src]
impl Debug for UnsubscribePacketfn 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 UnsubscribePacket[src]
impl Eq for UnsubscribePacketimpl PartialEq for UnsubscribePacket[src]
impl PartialEq for UnsubscribePacketfn eq(&self, other: &UnsubscribePacket) -> bool[src]
fn eq(&self, other: &UnsubscribePacket) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &UnsubscribePacket) -> bool[src]
fn ne(&self, other: &UnsubscribePacket) -> boolThis method tests for !=.
impl Packet for UnsubscribePacket[src]
impl Packet for UnsubscribePackettype Payload = UnsubscribePacketPayload
fn fixed_header(&self) -> &FixedHeader[src]
fn fixed_header(&self) -> &FixedHeaderGet a FixedHeader of this packet
fn payload(self) -> Self::Payload[src]
fn payload(self) -> Self::PayloadGet the payload
fn payload_ref(&self) -> &Self::Payload[src]
fn payload_ref(&self) -> &Self::PayloadGet a borrow of payload
fn encode_variable_headers<W: Write>(
&self,
writer: &mut W
) -> Result<(), PacketError<Self>>[src]
fn encode_variable_headers<W: Write>(
&self,
writer: &mut W
) -> Result<(), PacketError<Self>>Encode variable headers to writer
fn encoded_variable_headers_length(&self) -> u32[src]
fn encoded_variable_headers_length(&self) -> u32Length of bytes after encoding variable header
fn decode_packet<R: Read>(
reader: &mut R,
fixed_header: FixedHeader
) -> Result<Self, PacketError<Self>>[src]
fn decode_packet<R: Read>(
reader: &mut R,
fixed_header: FixedHeader
) -> Result<Self, PacketError<Self>>Deocde packet with a FixedHeader
impl From<UnsubscribePacket> for VariablePacket[src]
impl From<UnsubscribePacket> for VariablePacketfn from(pk: UnsubscribePacket) -> VariablePacket[src]
fn from(pk: UnsubscribePacket) -> VariablePacketPerforms the conversion.
Auto Trait Implementations
impl Send for UnsubscribePacket
impl Send for UnsubscribePacketimpl Sync for UnsubscribePacket
impl Sync for UnsubscribePacket