Trait brotli::CustomWrite
[−]
[src]
pub trait CustomWrite<ErrType> { fn write(&mut self, data: &[u8]) -> Result<usize, ErrType>; fn flush(&mut self) -> Result<(), ErrType>; }
this trait does not allow for transient errors: they must be retried in the underlying layer
Required Methods
fn write(&mut self, data: &[u8]) -> Result<usize, ErrType>
fn flush(&mut self) -> Result<(), ErrType>
Implementors
impl<'a, OutputType> CustomWrite<Error> for IoWriterWrapper<'a, OutputType> where
OutputType: Write,impl<ErrType, W, BufferType, AllocU8, AllocU32, AllocHC> CustomWrite<ErrType> for DecompressorWriterCustomIo<ErrType, W, BufferType, AllocU8, AllocU32, AllocHC> where
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
BufferType: SliceWrapperMut<u8>,
W: CustomWrite<ErrType>,impl<InputType> CustomWrite<Error> for IntoIoWriter<InputType> where
InputType: Write,impl<ErrType, W: CustomWrite<ErrType>, BufferType: SliceWrapperMut<u8>, AllocU8: Allocator<u8>, AllocU16: Allocator<u16>, AllocI32: Allocator<i32>, AllocU32: Allocator<u32>, AllocCommand: Allocator<Command>, AllocF64: Allocator<floatX>, AllocFV: Allocator<Mem256f>, AllocHL: Allocator<HistogramLiteral>, AllocHC: Allocator<HistogramCommand>, AllocHD: Allocator<HistogramDistance>, AllocHP: Allocator<HistogramPair>, AllocCT: Allocator<ContextType>, AllocHT: Allocator<HuffmanTree>> CustomWrite<ErrType> for CompressorWriterCustomIo<ErrType, W, BufferType, AllocU8, AllocU16, AllocI32, AllocU32, AllocCommand, AllocF64, AllocFV, AllocHL, AllocHC, AllocHD, AllocHP, AllocCT, AllocHT>