pub enum DataFormat {
Binary,
Text,
Utf8,
Mime,
Local,
Unknown(u8),
}Expand description
Data format indicator for Literal Data packets.
Variants§
Binary
Binary data (‘b’, 0x62).
Text
Text data (‘t’, 0x74) - may need line ending conversion.
Utf8
UTF-8 text (‘u’, 0x75) - text known to be UTF-8.
Mime
MIME format (‘m’, 0x6D) - RFC 9580.
Local
Local mode (‘l’, 0x6C) - deprecated.
Unknown(u8)
Unknown format.
Trait Implementations§
Source§impl Clone for DataFormat
impl Clone for DataFormat
Source§fn clone(&self) -> DataFormat
fn clone(&self) -> DataFormat
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 DataFormat
Source§impl Debug for DataFormat
impl Debug for DataFormat
impl Eq for DataFormat
Source§impl PartialEq for DataFormat
impl PartialEq for DataFormat
Source§fn eq(&self, other: &DataFormat) -> bool
fn eq(&self, other: &DataFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DataFormat
Auto Trait Implementations§
impl Freeze for DataFormat
impl RefUnwindSafe for DataFormat
impl Send for DataFormat
impl Sync for DataFormat
impl Unpin for DataFormat
impl UnsafeUnpin for DataFormat
impl UnwindSafe for DataFormat
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