pub enum CompressionKind {
Zstd,
Xz,
Lz4,
None,
}Variants§
Implementations§
Source§impl CompressionKind
impl CompressionKind
pub fn try_get_extension(&self) -> Option<&'static str>
Sourcepub fn get_extension_with_dot(&self) -> String
pub fn get_extension_with_dot(&self) -> String
WARNING: This should only be used internally, and may be removed in a future release.
pub fn compress<'a, W: AsyncWrite + Send + 'a>( &self, sink: W, ) -> Pin<Box<dyn AsyncWrite + Send + 'a>>
pub fn decompress<'a, W: AsyncBufRead + Send + 'a>( &self, source: W, ) -> Pin<Box<dyn AsyncRead + Send + 'a>>
Trait Implementations§
Source§impl Clone for CompressionKind
impl Clone for CompressionKind
Source§fn clone(&self) -> CompressionKind
fn clone(&self) -> CompressionKind
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 CompressionKind
impl Debug for CompressionKind
impl Copy for CompressionKind
Auto Trait Implementations§
impl Freeze for CompressionKind
impl RefUnwindSafe for CompressionKind
impl Send for CompressionKind
impl Sync for CompressionKind
impl Unpin for CompressionKind
impl UnwindSafe for CompressionKind
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