pub struct WildcardSubscriptionAvailable { /* private fields */ }
Implementations§
Source§impl WildcardSubscriptionAvailable
impl WildcardSubscriptionAvailable
Sourcepub fn parse(bytes: &[u8]) -> Result<(Self, usize), MqttError>
pub fn parse(bytes: &[u8]) -> Result<(Self, usize), MqttError>
Parses a u8 property from the given byte slice.
§Parameters
bytes
- The byte slice to parse from
§Returns
Ok((Self, usize))
- The parsed property and number of bytes consumedErr(MqttError)
- If parsing fails or validation fails
§Examples
ⓘ
let data = &[42];
let (prop, consumed) = PayloadFormatIndicator::parse(data).unwrap();
assert_eq!(consumed, 1);
Sourcepub fn to_buffers(&self) -> Vec<IoSlice<'_>>
pub fn to_buffers(&self) -> Vec<IoSlice<'_>>
Sourcepub fn to_continuous_buffer(&self) -> Vec<u8> ⓘ
pub fn to_continuous_buffer(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for WildcardSubscriptionAvailable
impl Clone for WildcardSubscriptionAvailable
Source§fn clone(&self) -> WildcardSubscriptionAvailable
fn clone(&self) -> WildcardSubscriptionAvailable
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 From<WildcardSubscriptionAvailable> for Property
impl From<WildcardSubscriptionAvailable> for Property
Source§fn from(v: WildcardSubscriptionAvailable) -> Self
fn from(v: WildcardSubscriptionAvailable) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WildcardSubscriptionAvailable
impl PartialEq for WildcardSubscriptionAvailable
Source§fn eq(&self, other: &WildcardSubscriptionAvailable) -> bool
fn eq(&self, other: &WildcardSubscriptionAvailable) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for WildcardSubscriptionAvailable
impl StructuralPartialEq for WildcardSubscriptionAvailable
Auto Trait Implementations§
impl Freeze for WildcardSubscriptionAvailable
impl RefUnwindSafe for WildcardSubscriptionAvailable
impl Send for WildcardSubscriptionAvailable
impl Sync for WildcardSubscriptionAvailable
impl Unpin for WildcardSubscriptionAvailable
impl UnwindSafe for WildcardSubscriptionAvailable
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.