pub enum BinaryDataFormat {
Bytes,
Utf8,
}Expand description
Format of custom, binary data
Variants§
Bytes
Arbitrary binary data
Serialized as Base64 with standard alphabet and no padding.
Utf8
Serialized UTF-8 data
A typical use case is the tunneling of UTF-8 JSON data.
Trait Implementations§
Source§impl Clone for BinaryDataFormat
impl Clone for BinaryDataFormat
Source§fn clone(&self) -> BinaryDataFormat
fn clone(&self) -> BinaryDataFormat
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 BinaryDataFormat
impl Debug for BinaryDataFormat
Source§impl Default for BinaryDataFormat
impl Default for BinaryDataFormat
Source§fn default() -> BinaryDataFormat
fn default() -> BinaryDataFormat
Returns the “default value” for a type. Read more
Source§impl PartialEq for BinaryDataFormat
impl PartialEq for BinaryDataFormat
impl Copy for BinaryDataFormat
impl Eq for BinaryDataFormat
impl StructuralPartialEq for BinaryDataFormat
Auto Trait Implementations§
impl Freeze for BinaryDataFormat
impl RefUnwindSafe for BinaryDataFormat
impl Send for BinaryDataFormat
impl Sync for BinaryDataFormat
impl Unpin for BinaryDataFormat
impl UnwindSafe for BinaryDataFormat
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