pub enum CompressionType {
Raw(RawCompression),
Bzip2(Bzip2Compression),
Gzip(GzipCompression),
Lz4(Lz4Compression),
Xz(XzCompression),
}
Expand description
Enumeration of known compression schemes.
Variants§
Raw(RawCompression)
Bzip2(Bzip2Compression)
Gzip(GzipCompression)
Lz4(Lz4Compression)
Xz(XzCompression)
Implementations§
Source§impl CompressionType
impl CompressionType
pub fn new<T: Compression>() -> CompressionTypewhere
CompressionType: From<T>,
Trait Implementations§
Source§impl Clone for CompressionType
impl Clone for CompressionType
Source§fn clone(&self) -> CompressionType
fn clone(&self) -> CompressionType
Returns a copy 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 Compression for CompressionType
impl Compression for CompressionType
Source§impl Debug for CompressionType
impl Debug for CompressionType
Source§impl Default for CompressionType
impl Default for CompressionType
Source§fn default() -> CompressionType
fn default() -> CompressionType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompressionType
impl<'de> Deserialize<'de> for CompressionType
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CompressionType
impl Display for CompressionType
Source§impl From<Bzip2Compression> for CompressionType
impl From<Bzip2Compression> for CompressionType
Source§fn from(c: Bzip2Compression) -> Self
fn from(c: Bzip2Compression) -> Self
Converts to this type from the input type.
Source§impl From<GzipCompression> for CompressionType
impl From<GzipCompression> for CompressionType
Source§fn from(c: GzipCompression) -> Self
fn from(c: GzipCompression) -> Self
Converts to this type from the input type.
Source§impl From<Lz4Compression> for CompressionType
impl From<Lz4Compression> for CompressionType
Source§fn from(c: Lz4Compression) -> Self
fn from(c: Lz4Compression) -> Self
Converts to this type from the input type.
Source§impl From<RawCompression> for CompressionType
impl From<RawCompression> for CompressionType
Source§fn from(c: RawCompression) -> Self
fn from(c: RawCompression) -> Self
Converts to this type from the input type.
Source§impl From<XzCompression> for CompressionType
impl From<XzCompression> for CompressionType
Source§fn from(c: XzCompression) -> Self
fn from(c: XzCompression) -> Self
Converts to this type from the input type.
Source§impl FromStr for CompressionType
impl FromStr for CompressionType
Source§impl PartialEq for CompressionType
impl PartialEq for CompressionType
Source§impl Serialize for CompressionType
impl Serialize for CompressionType
impl StructuralPartialEq for CompressionType
Auto Trait Implementations§
impl Freeze for CompressionType
impl RefUnwindSafe for CompressionType
impl Send for CompressionType
impl Sync for CompressionType
impl Unpin for CompressionType
impl UnwindSafe for CompressionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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