Struct brotli::enc::writer::CompressorWriter
[−]
[src]
pub struct CompressorWriter<W: Write>(_);
Methods
impl<W: Write> CompressorWriter<W>
[src]
pub fn new(w: W, buffer_size: usize, q: u32, lgwin: u32) -> Self
[src]
ⓘImportant traits for &'a mut Ipub fn get_ref(&self) -> &W
[src]
ⓘImportant traits for &'a mut I
Trait Implementations
impl<W: Write> Write for CompressorWriter<W>
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
[src]
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<(), Error>
[src]
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
Writes a formatted string into this writer, returning any error encountered. Read more
ⓘImportant traits for &'a mut Ifn by_ref(&mut self) -> &mut Self
1.0.0[src]
ⓘImportant traits for &'a mut I
Creates a "by reference" adaptor for this instance of Write
. Read more
Auto Trait Implementations
impl<W> Send for CompressorWriter<W> where
W: Send,
W: Send,
impl<W> Sync for CompressorWriter<W> where
W: Sync,
W: Sync,