[][src]Trait brotli::CustomRead

pub trait CustomRead<ErrType> {
    fn read(&mut self, data: &mut [u8]) -> Result<usize, ErrType>;
}

this trait does not allow for transient errors: they must be retried in the underlying layer

Required methods

fn read(&mut self, data: &mut [u8]) -> Result<usize, ErrType>

Loading content...

Implementors

impl<'a, InputType> CustomRead<Error> for IoReaderWrapper<'a, InputType> where
    InputType: Read
[src]

impl<ErrType, R, BufferType, AllocU8, AllocU32, AllocHC> CustomRead<ErrType> for DecompressorCustomIo<ErrType, R, BufferType, AllocU8, AllocU32, AllocHC> where
    AllocHC: Allocator<HuffmanCode>,
    AllocU32: Allocator<u32>,
    AllocU8: Allocator<u8>,
    BufferType: SliceWrapperMut<u8>,
    R: CustomRead<ErrType>, 
[src]

impl<ErrType, R: CustomRead<ErrType>, BufferType: SliceWrapperMut<u8>, Alloc: BrotliAlloc> CustomRead<ErrType> for CompressorReaderCustomIo<ErrType, R, BufferType, Alloc>[src]

impl<InputType> CustomRead<Error> for IntoIoReader<InputType> where
    InputType: Read
[src]

Loading content...