Struct CrcReader
pub struct CrcReader<R> { /* private fields */ }
A wrapper around a Read that calculates the CRC.
Implementations
impl<R> CrcReader<R>
fn crc(&self) -> &CrcGet the Crc for this
CrcReader.fn into_inner(self) -> RGet the reader that is wrapped by this
CrcReader.fn get_ref(&self) -> &RGet the reader that is wrapped by this
CrcReaderby reference.fn get_mut(&mut self) -> &mut RGet a mutable reference to the reader that is wrapped by this
CrcReader.fn reset(&mut self)Reset the Crc in this
CrcReader.
impl<R: Read> CrcReader<R>
fn new(r: R) -> CrcReader<R>Create a new
CrcReader.
Trait Implementations
impl<R: BufRead> BufRead for CrcReader<R>
fn fill_buf(&mut self) -> Result<&[u8]>fn consume(&mut self, amt: usize)
impl<R: Debug> Debug for CrcReader<R>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<R: Read> Read for CrcReader<R>
fn read(&mut self, into: &mut [u8]) -> Result<usize>