Struct async_compression::codec::brotli::encoder::BrotliEncoder
source · pub struct BrotliEncoder {
state: BrotliEncoderStateStruct<StandardAlloc>,
}
Fields§
§state: BrotliEncoderStateStruct<StandardAlloc>
Implementations§
source§impl BrotliEncoder
impl BrotliEncoder
pub(crate) fn new(params: BrotliEncoderParams) -> Self
fn encode( &mut self, input: &mut PartialBuffer<impl AsRef<[u8]>>, output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>, op: BrotliEncoderOperation, ) -> Result<()>
Trait Implementations§
source§impl Debug for BrotliEncoder
impl Debug for BrotliEncoder
source§impl Encode for BrotliEncoder
impl Encode for BrotliEncoder
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 BrotliEncoder
impl RefUnwindSafe for BrotliEncoder
impl Send for BrotliEncoder
impl Sync for BrotliEncoder
impl Unpin for BrotliEncoder
impl UnwindSafe for BrotliEncoder
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