pub enum VariantCompressor {
Brotli(BrotliCompressor),
Zlib(ZlibCompressor),
}
Available on crate feature
protocol
only.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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