pub enum VariantCompressor {
Brotli(BrotliCompressor),
Zlib(ZlibCompressor),
}
Expand description
The channel compressor wraps the brotli and zlib compressor types, implementing the ChannelCompressor trait itself.
Variants§
Implementations§
Source§impl VariantCompressor
impl VariantCompressor
Sourcepub fn from_timestamp(
config: &RollupConfig,
timestamp: u64,
) -> VariantCompressor
pub fn from_timestamp( config: &RollupConfig, timestamp: u64, ) -> VariantCompressor
Constructs a VariantCompressor using the given RollupConfig and timestamp.
Trait Implementations§
Source§impl Clone for VariantCompressor
impl Clone for VariantCompressor
Source§fn clone(&self) -> VariantCompressor
fn clone(&self) -> VariantCompressor
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 CompressorWriter for VariantCompressor
impl CompressorWriter for VariantCompressor
Source§impl Debug for VariantCompressor
impl Debug for VariantCompressor
Source§impl From<CompressionAlgo> for VariantCompressor
impl From<CompressionAlgo> for VariantCompressor
Source§fn from(algo: CompressionAlgo) -> VariantCompressor
fn from(algo: CompressionAlgo) -> VariantCompressor
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VariantCompressor
impl RefUnwindSafe for VariantCompressor
impl Send for VariantCompressor
impl Sync for VariantCompressor
impl Unpin for VariantCompressor
impl UnwindSafe for VariantCompressor
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