#[non_exhaustive]#[repr(u16)]pub enum BodyFormat {
RawBinary = 0,
Beve = 1,
Json = 2,
Utf8 = 3,
}Expand description
Reserved Body formats (0..=4095 reserved for REPE)
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.
Trait Implementations§
Source§impl Clone for BodyFormat
impl Clone for BodyFormat
impl Copy for BodyFormat
Source§impl Debug for BodyFormat
impl Debug for BodyFormat
impl Eq for BodyFormat
Source§impl From<BodyFormat> for u16
impl From<BodyFormat> for u16
Source§fn from(v: BodyFormat) -> Self
fn from(v: BodyFormat) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BodyFormat
impl PartialEq for BodyFormat
Source§impl<'de> Read<'de> for BodyFormat
impl<'de> Read<'de> for BodyFormat
Source§impl<'de> Read<'de> for BodyFormat
impl<'de> Read<'de> for BodyFormat
Source§impl<'de> ReadEnum<'de> for BodyFormat
impl<'de> ReadEnum<'de> for BodyFormat
Source§impl<'de> ReadEnum<'de> for BodyFormat
impl<'de> ReadEnum<'de> for BodyFormat
impl StructuralPartialEq for BodyFormat
Source§impl TryFrom<u16> for BodyFormat
impl TryFrom<u16> for BodyFormat
Source§impl Variants for BodyFormat
impl Variants for BodyFormat
Source§impl Write for BodyFormat
impl Write for BodyFormat
Source§impl Write for BodyFormat
impl Write for BodyFormat
Source§const ARRAY: Option<&'static [u8]>
const ARRAY: Option<&'static [u8]>
The header bytes a contiguous run of this type is stored under, or
None if it has no array form of its own and belongs in a generic one. Read morefn write<O: Options>(&self, w: &mut Writer<'_, O>)
Auto Trait Implementations§
impl Freeze for BodyFormat
impl RefUnwindSafe for BodyFormat
impl Send for BodyFormat
impl Sync for BodyFormat
impl Unpin for BodyFormat
impl UnsafeUnpin for BodyFormat
impl UnwindSafe for BodyFormat
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