Struct minimq::types::BinaryData
source · pub struct BinaryData<'a>(pub &'a [u8]);
Expand description
A wrapper type for “Binary Data” as defined in the MQTT v5 specification.
§Note
This wrapper type is primarily used to support custom serde functionality.
Tuple Fields§
§0: &'a [u8]
Trait Implementations§
source§impl<'a> Clone for BinaryData<'a>
impl<'a> Clone for BinaryData<'a>
source§fn clone(&self) -> BinaryData<'a>
fn clone(&self) -> BinaryData<'a>
Returns a copy 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<'a> Debug for BinaryData<'a>
impl<'a> Debug for BinaryData<'a>
source§impl<'de> Deserialize<'de> for BinaryData<'de>
impl<'de> Deserialize<'de> for BinaryData<'de>
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> PartialEq for BinaryData<'a>
impl<'a> PartialEq for BinaryData<'a>
source§fn eq(&self, other: &BinaryData<'a>) -> bool
fn eq(&self, other: &BinaryData<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for BinaryData<'a>
impl<'a> Serialize for BinaryData<'a>
impl<'a> Copy for BinaryData<'a>
impl<'a> StructuralPartialEq for BinaryData<'a>
Auto Trait Implementations§
impl<'a> Freeze for BinaryData<'a>
impl<'a> RefUnwindSafe for BinaryData<'a>
impl<'a> Send for BinaryData<'a>
impl<'a> Sync for BinaryData<'a>
impl<'a> Unpin for BinaryData<'a>
impl<'a> UnwindSafe for BinaryData<'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