Struct brotli::enc::writer::CompressorWriterCustomIo
source · pub struct CompressorWriterCustomIo<ErrType, W: CustomWrite<ErrType>, BufferType: SliceWrapperMut<u8>, Alloc: BrotliAlloc> {
output_buffer: BufferType,
total_out: Option<usize>,
output: Option<W>,
error_if_invalid_data: Option<ErrType>,
state: BrotliEncoderStateStruct<Alloc>,
error_if_zero_bytes_written: Option<ErrType>,
}
Fields§
§output_buffer: BufferType
§total_out: Option<usize>
§output: Option<W>
§error_if_invalid_data: Option<ErrType>
§state: BrotliEncoderStateStruct<Alloc>
§error_if_zero_bytes_written: Option<ErrType>
Implementations§
source§impl<ErrType, W: CustomWrite<ErrType>, BufferType: SliceWrapperMut<u8>, Alloc: BrotliAlloc> CompressorWriterCustomIo<ErrType, W, BufferType, Alloc>
impl<ErrType, W: CustomWrite<ErrType>, BufferType: SliceWrapperMut<u8>, Alloc: BrotliAlloc> CompressorWriterCustomIo<ErrType, W, BufferType, Alloc>
pub fn new( w: W, buffer: BufferType, alloc: Alloc, invalid_data_error_type: ErrType, error_if_zero_bytes_written: ErrType, q: u32, lgwin: u32, ) -> Self
fn flush_or_close(&mut self, op: BrotliEncoderOperation) -> Result<(), ErrType>
pub fn get_ref(&self) -> &W
pub fn get_mut(&mut self) -> &mut W
pub fn into_inner(self) -> W
Trait Implementations§
source§impl<ErrType, W: CustomWrite<ErrType>, BufferType: SliceWrapperMut<u8>, Alloc: BrotliAlloc> CustomWrite<ErrType> for CompressorWriterCustomIo<ErrType, W, BufferType, Alloc>
impl<ErrType, W: CustomWrite<ErrType>, BufferType: SliceWrapperMut<u8>, Alloc: BrotliAlloc> CustomWrite<ErrType> for CompressorWriterCustomIo<ErrType, W, BufferType, Alloc>
source§impl<ErrType, W: CustomWrite<ErrType>, BufferType: SliceWrapperMut<u8>, Alloc: BrotliAlloc> Drop for CompressorWriterCustomIo<ErrType, W, BufferType, Alloc>
impl<ErrType, W: CustomWrite<ErrType>, BufferType: SliceWrapperMut<u8>, Alloc: BrotliAlloc> Drop for CompressorWriterCustomIo<ErrType, W, BufferType, Alloc>
Auto Trait Implementations§
impl<ErrType, W, BufferType, Alloc> Freeze for CompressorWriterCustomIo<ErrType, W, BufferType, Alloc>where
BufferType: Freeze,
W: Freeze,
ErrType: Freeze,
Alloc: Freeze,
<Alloc as Allocator<Command>>::AllocatedMemory: Freeze,
<Alloc as Allocator<u8>>::AllocatedMemory: Freeze,
<Alloc as Allocator<i32>>::AllocatedMemory: Freeze,
<Alloc as Allocator<u32>>::AllocatedMemory: Freeze,
<Alloc as Allocator<u16>>::AllocatedMemory: Freeze,
impl<ErrType, W, BufferType, Alloc> RefUnwindSafe for CompressorWriterCustomIo<ErrType, W, BufferType, Alloc>where
BufferType: RefUnwindSafe,
W: RefUnwindSafe,
ErrType: RefUnwindSafe,
Alloc: RefUnwindSafe,
<Alloc as Allocator<Command>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<u8>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<i32>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<u32>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<u16>>::AllocatedMemory: RefUnwindSafe,
impl<ErrType, W, BufferType, Alloc> Send for CompressorWriterCustomIo<ErrType, W, BufferType, Alloc>where
BufferType: Send,
W: Send,
ErrType: Send,
Alloc: Send,
<Alloc as Allocator<Command>>::AllocatedMemory: Send,
<Alloc as Allocator<u8>>::AllocatedMemory: Send,
<Alloc as Allocator<i32>>::AllocatedMemory: Send,
<Alloc as Allocator<u32>>::AllocatedMemory: Send,
<Alloc as Allocator<u16>>::AllocatedMemory: Send,
impl<ErrType, W, BufferType, Alloc> Sync for CompressorWriterCustomIo<ErrType, W, BufferType, Alloc>where
BufferType: Sync,
W: Sync,
ErrType: Sync,
Alloc: Sync,
<Alloc as Allocator<Command>>::AllocatedMemory: Sync,
<Alloc as Allocator<u8>>::AllocatedMemory: Sync,
<Alloc as Allocator<i32>>::AllocatedMemory: Sync,
<Alloc as Allocator<u32>>::AllocatedMemory: Sync,
<Alloc as Allocator<u16>>::AllocatedMemory: Sync,
impl<ErrType, W, BufferType, Alloc> Unpin for CompressorWriterCustomIo<ErrType, W, BufferType, Alloc>where
BufferType: Unpin,
W: Unpin,
ErrType: Unpin,
Alloc: Unpin,
<Alloc as Allocator<Command>>::AllocatedMemory: Unpin,
<Alloc as Allocator<u8>>::AllocatedMemory: Unpin,
<Alloc as Allocator<i32>>::AllocatedMemory: Unpin,
<Alloc as Allocator<u32>>::AllocatedMemory: Unpin,
<Alloc as Allocator<u16>>::AllocatedMemory: Unpin,
impl<ErrType, W, BufferType, Alloc> UnwindSafe for CompressorWriterCustomIo<ErrType, W, BufferType, Alloc>where
BufferType: UnwindSafe,
W: UnwindSafe,
ErrType: UnwindSafe,
Alloc: UnwindSafe,
<Alloc as Allocator<Command>>::AllocatedMemory: UnwindSafe,
<Alloc as Allocator<u8>>::AllocatedMemory: UnwindSafe,
<Alloc as Allocator<i32>>::AllocatedMemory: UnwindSafe,
<Alloc as Allocator<u32>>::AllocatedMemory: UnwindSafe,
<Alloc as Allocator<u16>>::AllocatedMemory: UnwindSafe,
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