pub struct CpuGzip { /* private fields */ }Expand description
CPU gzip codec (RFC 1952). level clamped to 0..=9.
Implementations§
Trait Implementations§
Source§impl Codec for CpuGzip
impl Codec for CpuGzip
Source§fn compress<'life0, 'async_trait>(
&'life0 self,
input: Bytes,
) -> Pin<Box<dyn Future<Output = Result<(Bytes, ChunkManifest), CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn compress<'life0, 'async_trait>(
&'life0 self,
input: Bytes,
) -> Pin<Box<dyn Future<Output = Result<(Bytes, ChunkManifest), CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
圧縮: 入力 bytes → 圧縮済 bytes + manifest
Source§fn decompress<'life0, 'life1, 'async_trait>(
&'life0 self,
input: Bytes,
manifest: &'life1 ChunkManifest,
) -> Pin<Box<dyn Future<Output = Result<Bytes, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn decompress<'life0, 'life1, 'async_trait>(
&'life0 self,
input: Bytes,
manifest: &'life1 ChunkManifest,
) -> Pin<Box<dyn Future<Output = Result<Bytes, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
解凍: 圧縮済 bytes + manifest → 元の bytes
Auto Trait Implementations§
impl Freeze for CpuGzip
impl RefUnwindSafe for CpuGzip
impl Send for CpuGzip
impl Sync for CpuGzip
impl Unpin for CpuGzip
impl UnsafeUnpin for CpuGzip
impl UnwindSafe for CpuGzip
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