pub struct WritableCrc<'c, W: Width>(pub Digest<'c, W>);Expand description
Wrapper around any crc::Digest (typically hashes) that implements embedded_io::Write
to send data into a digest.
Tuple Fields§
§0: Digest<'c, W>Trait Implementations§
Source§impl<W: Width> ErrorType for WritableCrc<'_, W>
impl<W: Width> ErrorType for WritableCrc<'_, W>
Source§type Error = Infallible
type Error = Infallible
Error type of all the IO operations on this type.
Source§impl Write for WritableCrc<'_, u32>
impl Write for WritableCrc<'_, u32>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.
Source§impl Write for WritableCrc<'_, u64>
impl Write for WritableCrc<'_, u64>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.
Auto Trait Implementations§
impl<'c, W> Freeze for WritableCrc<'c, W>where
W: Freeze,
impl<'c, W> RefUnwindSafe for WritableCrc<'c, W>where
W: RefUnwindSafe,
impl<'c, W> Send for WritableCrc<'c, W>
impl<'c, W> Sync for WritableCrc<'c, W>where
W: Sync,
impl<'c, W> Unpin for WritableCrc<'c, W>where
W: Unpin,
impl<'c, W> UnwindSafe for WritableCrc<'c, W>where
W: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more