#[repr(i8)]pub enum BodyCompressionMethod {
Buffer = 0,
}Expand description
Provided for forward compatibility in case we need to support different strategies for compressing the IPC message body (like whole-body compression rather than buffer-level) in the future
Generated from these locations:
- Enum
BodyCompressionMethodin the fileMessage.fbs:58
Variants§
Buffer = 0
Each constituent buffer is first compressed with the indicated compressor, and then written with the uncompressed length in the first 8 bytes as a 64-bit little-endian signed integer followed by the compressed buffer bytes (and then padding as required by the protocol). The uncompressed length may be set to -1 to indicate that the data that follows is not compressed, which can be useful for cases where compression does not yield appreciable savings.
Implementations§
Source§impl BodyCompressionMethod
impl BodyCompressionMethod
Sourcepub const ENUM_VALUES: [Self; 1]
pub const ENUM_VALUES: [Self; 1]
Array containing all valid variants of BodyCompressionMethod
Trait Implementations§
Source§impl Clone for BodyCompressionMethod
impl Clone for BodyCompressionMethod
Source§fn clone(&self) -> BodyCompressionMethod
fn clone(&self) -> BodyCompressionMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BodyCompressionMethod
impl Debug for BodyCompressionMethod
Source§impl<'de> Deserialize<'de> for BodyCompressionMethod
impl<'de> Deserialize<'de> for BodyCompressionMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<BodyCompressionMethod> for i8
impl From<BodyCompressionMethod> for i8
Source§fn from(value: BodyCompressionMethod) -> Self
fn from(value: BodyCompressionMethod) -> Self
Source§impl Hash for BodyCompressionMethod
impl Hash for BodyCompressionMethod
Source§impl Ord for BodyCompressionMethod
impl Ord for BodyCompressionMethod
Source§fn cmp(&self, other: &BodyCompressionMethod) -> Ordering
fn cmp(&self, other: &BodyCompressionMethod) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for BodyCompressionMethod
impl PartialEq for BodyCompressionMethod
Source§impl PartialOrd for BodyCompressionMethod
impl PartialOrd for BodyCompressionMethod
Source§impl Serialize for BodyCompressionMethod
impl Serialize for BodyCompressionMethod
Source§impl TryFrom<i8> for BodyCompressionMethod
impl TryFrom<i8> for BodyCompressionMethod
Source§type Error = UnknownEnumTagKind
type Error = UnknownEnumTagKind
impl Copy for BodyCompressionMethod
impl Eq for BodyCompressionMethod
impl StructuralPartialEq for BodyCompressionMethod
impl VectorWrite<BodyCompressionMethod> for BodyCompressionMethod
§Safety
The planus compiler generates implementations that initialize
the bytes in write_values.
impl WriteAs<BodyCompressionMethod> for BodyCompressionMethod
impl WriteAsDefault<BodyCompressionMethod, BodyCompressionMethod> for BodyCompressionMethod
impl WriteAsOptional<BodyCompressionMethod> for BodyCompressionMethod
Auto Trait Implementations§
impl Freeze for BodyCompressionMethod
impl RefUnwindSafe for BodyCompressionMethod
impl Send for BodyCompressionMethod
impl Sync for BodyCompressionMethod
impl Unpin for BodyCompressionMethod
impl UnwindSafe for BodyCompressionMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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