Enum PayloadFormat
#[repr(u8)]pub enum PayloadFormat {
Unspecified = 0,
Utf8 = 1,
}Expand description
Payload format indicator (§3.3.2.3.2).
Specifies whether the Will / Application Message payload is unspecified bytes or UTF-8 encoded character data.
Variants§
Unspecified = 0
The payload is unspecified bytes (equivalent to not sending the property).
Utf8 = 1
The payload is UTF-8 encoded character data.
Implementations§
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 · 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 PayloadFormat
impl Debug for PayloadFormat
Source§impl Hash for PayloadFormat
impl Hash for PayloadFormat
Source§impl PartialEq for PayloadFormat
impl PartialEq for PayloadFormat
impl Copy for PayloadFormat
impl Eq 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 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
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