#[non_exhaustive]pub enum PayloadFormat {
Unspecified,
Utf8,
}Expand description
How an MQTT 5 PUBLISH payload is meant to be interpreted (the Payload Format
Indicator). Shared by the receive-side Mqtt5Meta and the publish options.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unspecified
Unspecified bytes (indicator 0 or absent).
Utf8
UTF-8 encoded character data (indicator 1).
Trait Implementations§
Source§impl Clone for PayloadFormat
impl Clone for PayloadFormat
Source§fn clone(&self) -> PayloadFormat
fn clone(&self) -> PayloadFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PayloadFormat
Source§impl Debug for PayloadFormat
impl Debug for PayloadFormat
Source§impl Default for PayloadFormat
impl Default for PayloadFormat
Source§fn default() -> PayloadFormat
fn default() -> PayloadFormat
Returns the “default value” for a type. Read more
impl Eq for PayloadFormat
Source§impl PartialEq for PayloadFormat
impl PartialEq for PayloadFormat
impl StructuralPartialEq for PayloadFormat
Auto Trait Implementations§
impl Freeze for PayloadFormat
impl RefUnwindSafe for PayloadFormat
impl Send for PayloadFormat
impl Sync for PayloadFormat
impl Unpin for PayloadFormat
impl UnsafeUnpin for PayloadFormat
impl UnwindSafe for PayloadFormat
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.