[][src]Struct gzip_header::CrcReader

pub struct CrcReader<R> { /* fields omitted */ }
[]

A reader that updates the checksum and counter of a Crc struct when reading from the wrapped reader.

Methods

impl<R: Read> CrcReader<R>[src][]

pub fn new(r: R) -> CrcReader<R>[src][]

Create a new CrcReader with a blank checksum.

pub fn crc(&self) -> &Crc[src][]

Return a reference to the underlying checksum struct.

pub fn into_inner(self) -> R[src][]

Consume this CrcReader and return the wrapped Read instance.

pub fn inner(&mut self) -> &mut R[src][]

Return a mutable reference to the wrapped reader.

pub fn reset(&mut self)[src][]

Reset the checksum and counter.

Trait Implementations

impl<R: BufRead> BufRead for CrcReader<R>[src][+]

impl<R: Debug> Debug for CrcReader<R>[src][+]

impl<R: Read> Read for CrcReader<R>[src][+]

Auto Trait Implementations

impl<R> RefUnwindSafe for CrcReader<R> where
    R: RefUnwindSafe

impl<R> Send for CrcReader<R> where
    R: Send

impl<R> Sync for CrcReader<R> where
    R: Sync

impl<R> Unpin for CrcReader<R> where
    R: Unpin

impl<R> UnwindSafe for CrcReader<R> where
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.