Struct rust_mqtt::utils::types::BinaryData
source · pub struct BinaryData<'a> {
pub bin: &'a [u8],
pub len: u16,
}Expand description
Binary data represents Binary data in MQTTv5 protocol
Fields§
§bin: &'a [u8]§len: u16Implementations§
source§impl BinaryData<'_>
impl BinaryData<'_>
pub fn new() -> Self
sourcepub fn encoded_len(&self) -> u16
pub fn encoded_len(&self) -> u16
Returns length of Byte array
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<'a> Default for BinaryData<'a>
impl<'a> Default for BinaryData<'a>
source§fn default() -> BinaryData<'a>
fn default() -> BinaryData<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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