Struct MqttBytesBuf
pub struct MqttBytesBuf(Box<[u8]>);Expand description
Owned binary data that satisfies the MQTT v5 length limit.
This is the owned counterpart to MqttBytes.
Tuple Fields§
§0: Box<[u8]>Implementations§
Methods from Deref<Target = MqttBytes>§
Trait Implementations§
Source§impl AsRef<[u8]> for MqttBytesBuf
impl AsRef<[u8]> for MqttBytesBuf
Source§impl AsRef<MqttBytes> for MqttBytesBuf
impl AsRef<MqttBytes> for MqttBytesBuf
Source§impl Borrow<MqttBytes> for MqttBytesBuf
impl Borrow<MqttBytes> for MqttBytesBuf
Source§impl Clone for MqttBytesBuf
impl Clone for MqttBytesBuf
Source§fn clone(&self) -> MqttBytesBuf
fn clone(&self) -> MqttBytesBuf
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 Debug for MqttBytesBuf
impl Debug for MqttBytesBuf
Source§impl Deref for MqttBytesBuf
impl Deref for MqttBytesBuf
Source§impl Hash for MqttBytesBuf
impl Hash for MqttBytesBuf
Source§impl PartialEq for MqttBytesBuf
impl PartialEq for MqttBytesBuf
Source§impl TryFrom<&[u8]> for MqttBytesBuf
impl TryFrom<&[u8]> for MqttBytesBuf
impl Eq for MqttBytesBuf
impl StructuralPartialEq for MqttBytesBuf
Auto Trait Implementations§
impl Freeze for MqttBytesBuf
impl RefUnwindSafe for MqttBytesBuf
impl Send for MqttBytesBuf
impl Sync for MqttBytesBuf
impl Unpin for MqttBytesBuf
impl UnwindSafe for MqttBytesBuf
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)