Struct CrcReader
struct CrcReader<R> { ... }
A wrapper around a Read that calculates the CRC.
Implementations
impl<R> CrcReader<R>
fn crc(self: &Self) -> &CrcGet the Crc for this
CrcReader.fn into_inner(self: Self) -> RGet the reader that is wrapped by this
CrcReader.fn get_ref(self: &Self) -> &RGet the reader that is wrapped by this
CrcReaderby reference.fn get_mut(self: &mut Self) -> &mut RGet a mutable reference to the reader that is wrapped by this
CrcReader.fn reset(self: &mut Self)Reset the Crc in this
CrcReader.
impl<R: Read> CrcReader<R>
fn new(r: R) -> CrcReader<R>Create a new
CrcReader.
impl<R> Freeze for CrcReader<R>
impl<R> RefUnwindSafe for CrcReader<R>
impl<R> Send for CrcReader<R>
impl<R> Sync for CrcReader<R>
impl<R> Unpin for CrcReader<R>
impl<R> UnsafeUnpin for CrcReader<R>
impl<R> UnwindSafe for CrcReader<R>
impl<R: $crate::fmt::Debug> Debug for CrcReader<R>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<R: BufRead> BufRead for CrcReader<R>
fn fill_buf(self: &mut Self) -> Result<&[u8]>fn consume(self: &mut Self, amt: usize)
impl<R: Read> Read for CrcReader<R>
fn read(self: &mut Self, into: &mut [u8]) -> Result<usize>
impl<T> Any for CrcReader<R>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for CrcReader<R>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for CrcReader<R>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for CrcReader<R>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for CrcReader<R>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for CrcReader<R>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for CrcReader<R>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>