pub struct Unsubscribe<Seq, Bytes> { /* private fields */ }
Expand description
An MQTT UNSUBSCRIBE
packet
Implementations§
Source§impl<Seq, Bytes> Unsubscribe<Seq, Bytes>
impl<Seq, Bytes> Unsubscribe<Seq, Bytes>
Sourcepub fn new<S, T>(packet_id: u16, topics: S) -> Result<Self, MemoryError>
pub fn new<S, T>(packet_id: u16, topics: S) -> Result<Self, MemoryError>
Creates a new packet
Trait Implementations§
Source§impl<Seq: Clone, Bytes: Clone> Clone for Unsubscribe<Seq, Bytes>
impl<Seq: Clone, Bytes: Clone> Clone for Unsubscribe<Seq, Bytes>
Source§fn clone(&self) -> Unsubscribe<Seq, Bytes>
fn clone(&self) -> Unsubscribe<Seq, Bytes>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Seq, Bytes> IntoIterator for Unsubscribe<Seq, Bytes>
impl<Seq, Bytes> IntoIterator for Unsubscribe<Seq, Bytes>
Source§type IntoIter = Chain<Chain<Chain<Chain<Empty<u8>, Once<u8>>, Take<<[u8; 4] as IntoIterator>::IntoIter>>, <[u8; 2] as IntoIterator>::IntoIter>, FlatMap<<Seq as IntoIterator>::IntoIter, Chain<<[u8; 2] as IntoIterator>::IntoIter, <Bytes as IntoIterator>::IntoIter>, fn(Bytes) -> Chain<<[u8; 2] as IntoIterator>::IntoIter, <Bytes as IntoIterator>::IntoIter>>>
type IntoIter = Chain<Chain<Chain<Chain<Empty<u8>, Once<u8>>, Take<<[u8; 4] as IntoIterator>::IntoIter>>, <[u8; 2] as IntoIterator>::IntoIter>, FlatMap<<Seq as IntoIterator>::IntoIter, Chain<<[u8; 2] as IntoIterator>::IntoIter, <Bytes as IntoIterator>::IntoIter>, fn(Bytes) -> Chain<<[u8; 2] as IntoIterator>::IntoIter, <Bytes as IntoIterator>::IntoIter>>>
Which kind of iterator are we turning this into?
Source§impl<Seq, Bytes> TryFromIterator for Unsubscribe<Seq, Bytes>
impl<Seq, Bytes> TryFromIterator for Unsubscribe<Seq, Bytes>
Source§fn try_from_iter<T>(iter: T) -> Result<Self, DecoderError>where
T: IntoIterator<Item = u8>,
fn try_from_iter<T>(iter: T) -> Result<Self, DecoderError>where
T: IntoIterator<Item = u8>,
Tries to build
Self
from the given byte iteratorimpl<Seq: Eq, Bytes: Eq> Eq for Unsubscribe<Seq, Bytes>
impl<Seq, Bytes> StructuralPartialEq for Unsubscribe<Seq, Bytes>
Auto Trait Implementations§
impl<Seq, Bytes> Freeze for Unsubscribe<Seq, Bytes>where
Seq: Freeze,
impl<Seq, Bytes> RefUnwindSafe for Unsubscribe<Seq, Bytes>where
Seq: RefUnwindSafe,
Bytes: RefUnwindSafe,
impl<Seq, Bytes> Send for Unsubscribe<Seq, Bytes>
impl<Seq, Bytes> Sync for Unsubscribe<Seq, Bytes>
impl<Seq, Bytes> Unpin for Unsubscribe<Seq, Bytes>
impl<Seq, Bytes> UnwindSafe for Unsubscribe<Seq, Bytes>where
Seq: UnwindSafe,
Bytes: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more