pub struct BrotliCompressor {
pub level: BrotliLevel,
/* private fields */
}
Expand description
The brotli compressor.
Fields§
§level: BrotliLevel
The compression level.
Implementations§
Source§impl BrotliCompressor
impl BrotliCompressor
Sourcepub fn new(level: impl Into<BrotliLevel>) -> BrotliCompressor
pub fn new(level: impl Into<BrotliLevel>) -> BrotliCompressor
Creates a new brotli compressor with the given compression level.
Trait Implementations§
Source§impl ChannelCompressor for BrotliCompressor
impl ChannelCompressor for BrotliCompressor
Source§impl Clone for BrotliCompressor
impl Clone for BrotliCompressor
Source§fn clone(&self) -> BrotliCompressor
fn clone(&self) -> BrotliCompressor
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 BrotliCompressor
impl CompressorWriter for BrotliCompressor
Source§impl Debug for BrotliCompressor
impl Debug for BrotliCompressor
Source§impl From<BrotliLevel> for BrotliCompressor
impl From<BrotliLevel> for BrotliCompressor
Source§fn from(level: BrotliLevel) -> BrotliCompressor
fn from(level: BrotliLevel) -> BrotliCompressor
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BrotliCompressor
impl RefUnwindSafe for BrotliCompressor
impl Send for BrotliCompressor
impl Sync for BrotliCompressor
impl Unpin for BrotliCompressor
impl UnwindSafe for BrotliCompressor
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