Struct CrcWriter
pub struct CrcWriter<W> { /* private fields */ }
A wrapper around a Write that calculates the CRC.
Implementations
impl<W> CrcWriter<W>
fn crc(&self) -> &CrcGet the Crc for this
CrcWriter.fn into_inner(self) -> WGet the writer that is wrapped by this
CrcWriter.fn get_ref(&self) -> &WGet the writer that is wrapped by this
CrcWriterby reference.fn get_mut(&mut self) -> &mut WGet a mutable reference to the writer that is wrapped by this
CrcWriter.fn reset(&mut self)Reset the Crc in this
CrcWriter.
impl<W: Write> CrcWriter<W>
fn new(w: W) -> CrcWriter<W>Create a new
CrcWriter.
Trait Implementations
impl<W: Debug> Debug for CrcWriter<W>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<W: Write> Write for CrcWriter<W>
fn write(&mut self, buf: &[u8]) -> Result<usize>fn flush(&mut self) -> Result<()>