pub enum Endian {
LittleEndian,
BigEndian,
NativeEndian,
}
Expand description
The endianness to use for encoding header fields.
The encoding and serialization of message bodies is up to the application code, and it not affected by this configuration parameter.
Variants§
LittleEndian
Encode header fields in little endian.
BigEndian
Encode header fields in big endian.
NativeEndian
Encode header fields in the native endianness of the platform.
NOTE: You should only use this when you know for sure that the other side of the connection is on the same platform, such as when using a Unix socket. Otherwise, both sides may select native endianness and end up using a different endianness.
Trait Implementations§
source§impl Ord for Endian
impl Ord for Endian
source§impl PartialEq for Endian
impl PartialEq for Endian
source§impl PartialOrd for Endian
impl PartialOrd for Endian
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Endian
impl Eq for Endian
impl StructuralEq for Endian
impl StructuralPartialEq for Endian
Auto Trait Implementations§
impl RefUnwindSafe for Endian
impl Send for Endian
impl Sync for Endian
impl Unpin for Endian
impl UnwindSafe for Endian
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