pub struct ZstdCompressionStrategy;
Trait Implementations§
Source§impl Clone for ZstdCompressionStrategy
impl Clone for ZstdCompressionStrategy
Source§fn clone(&self) -> ZstdCompressionStrategy
fn clone(&self) -> ZstdCompressionStrategy
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 CompressionStrategy for ZstdCompressionStrategy
impl CompressionStrategy for ZstdCompressionStrategy
Source§fn compress<'life0, 'life1, 'async_trait>(
&'life0 self,
uncompressed: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CompressionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn compress<'life0, 'life1, 'async_trait>(
&'life0 self,
uncompressed: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CompressionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Compresses the provided data asynchronously. Read more
Source§fn decompress<'life0, 'life1, 'async_trait>(
&'life0 self,
compressed: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CompressionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn decompress<'life0, 'life1, 'async_trait>(
&'life0 self,
compressed: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CompressionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Decompresses the provided data asynchronously. Read more
Auto Trait Implementations§
impl Freeze for ZstdCompressionStrategy
impl RefUnwindSafe for ZstdCompressionStrategy
impl Send for ZstdCompressionStrategy
impl Sync for ZstdCompressionStrategy
impl Unpin for ZstdCompressionStrategy
impl UnwindSafe for ZstdCompressionStrategy
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