Enum minimq::types::Properties
source · pub enum Properties<'a> {
Slice(&'a [Property<'a>]),
DataBlock(&'a [u8]),
CorrelatedSlice {
correlation: Property<'a>,
properties: &'a [Property<'a>],
},
}
Variants§
Slice(&'a [Property<'a>])
Properties ready for transmission are provided as a list of properties that will be later encoded into a packet.
DataBlock(&'a [u8])
Properties have an unknown size when being received. As such, we store them as a binary blob that we iterate across.
Properties that are correlated to a previous message.
Implementations§
Trait Implementations§
source§impl<'a> Debug for Properties<'a>
impl<'a> Debug for Properties<'a>
source§impl<'a, 'de: 'a> Deserialize<'de> for Properties<'a>
impl<'a, 'de: 'a> Deserialize<'de> for Properties<'a>
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> IntoIterator for &'a Properties<'a>
impl<'a> IntoIterator for &'a Properties<'a>
§type Item = Result<Property<'a>, ProtocolError>
type Item = Result<Property<'a>, ProtocolError>
The type of the elements being iterated over.
§type IntoIter = PropertiesIter<'a>
type IntoIter = PropertiesIter<'a>
Which kind of iterator are we turning this into?
source§impl<'a> PartialEq for Properties<'a>
impl<'a> PartialEq for Properties<'a>
source§fn eq(&self, other: &Properties<'a>) -> bool
fn eq(&self, other: &Properties<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for Properties<'a>
impl<'a> Serialize for Properties<'a>
impl<'a> StructuralPartialEq for Properties<'a>
Auto Trait Implementations§
impl<'a> Freeze for Properties<'a>
impl<'a> RefUnwindSafe for Properties<'a>
impl<'a> Send for Properties<'a>
impl<'a> Sync for Properties<'a>
impl<'a> Unpin for Properties<'a>
impl<'a> UnwindSafe for Properties<'a>
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