Trait TryFromIterator

Source
pub trait TryFromIterator
where Self: Sized,
{ // Required method fn try_from_iter<T>(iter: T) -> Result<Self, DecoderError> where T: IntoIterator<Item = u8>; }
Expand description

Traits for elements that can be build from a byte iterator

Required Methods§

Source

fn try_from_iter<T>(iter: T) -> Result<Self, DecoderError>
where T: IntoIterator<Item = u8>,

Tries to build Self from the given byte iterator

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl TryFromIterator for Connack

Source§

impl TryFromIterator for Disconnect

Source§

impl TryFromIterator for Pingreq

Source§

impl TryFromIterator for Pingresp

Source§

impl TryFromIterator for Puback

Source§

impl TryFromIterator for Pubcomp

Source§

impl TryFromIterator for Pubrec

Source§

impl TryFromIterator for Pubrel

Source§

impl TryFromIterator for Suback

Source§

impl TryFromIterator for Unsuback

Source§

impl<Bytes> TryFromIterator for Connect<Bytes>
where Bytes: AnyVec<u8>,

Source§

impl<Bytes> TryFromIterator for Publish<Bytes>
where Bytes: AnyVec<u8>,

Source§

impl<Seq, Bytes> TryFromIterator for Subscribe<Seq, Bytes>
where Seq: AnyVec<(Bytes, u8)>, Bytes: AnyVec<u8>,

Source§

impl<Seq, Bytes> TryFromIterator for Unsubscribe<Seq, Bytes>
where Seq: AnyVec<Bytes>, Bytes: AnyVec<u8>,

Source§

impl<TopicsSeq, TopicsQosSeq, Bytes> TryFromIterator for Packet<TopicsSeq, TopicsQosSeq, Bytes>
where TopicsSeq: AnyVec<Bytes>, TopicsQosSeq: AnyVec<(Bytes, u8)>, Bytes: AnyVec<u8>,