pub struct BrotliCompressor {
pub level: BrotliLevel,
/* private fields */
}
Available on crate feature
std
only.Expand description
The brotli compressor.
Fields§
§level: BrotliLevel
The compression level.
Implementations§
Source§impl BrotliCompressor
impl BrotliCompressor
Sourcepub fn new(level: impl Into<BrotliLevel>) -> Self
pub fn new(level: impl Into<BrotliLevel>) -> Self
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§fn write(&mut self, data: &[u8]) -> CompressorResult<usize>
fn write(&mut self, data: &[u8]) -> CompressorResult<usize>
Writes the given data to the compressor.
Source§fn flush(&mut self) -> CompressorResult<()>
fn flush(&mut self) -> CompressorResult<()>
Flushes the buffer.
Source§fn close(&mut self) -> CompressorResult<()>
fn close(&mut self) -> CompressorResult<()>
Closes the compressor.
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) -> Self
fn from(level: BrotliLevel) -> Self
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