Struct async_compression::codec::flate::encoder::FlateEncoder
source · pub struct FlateEncoder {
compress: Compress,
flushed: bool,
}
Fields§
§compress: Compress
§flushed: bool
Implementations§
source§impl FlateEncoder
impl FlateEncoder
pub(crate) fn new(level: Compression, zlib_header: bool) -> Self
pub(crate) fn get_ref(&self) -> &Compress
fn encode( &mut self, input: &mut PartialBuffer<impl AsRef<[u8]>>, output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>, flush: FlushCompress, ) -> Result<Status>
Trait Implementations§
source§impl Debug for FlateEncoder
impl Debug for FlateEncoder
source§impl Encode for FlateEncoder
impl Encode for FlateEncoder
fn encode( &mut self, input: &mut PartialBuffer<impl AsRef<[u8]>>, output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for FlateEncoder
impl RefUnwindSafe for FlateEncoder
impl Send for FlateEncoder
impl Sync for FlateEncoder
impl Unpin for FlateEncoder
impl UnwindSafe for FlateEncoder
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