MCPcopy Create free account
hub / github.com/RustCrypto/utils / HashReader

Class HashReader

digest-io/src/reader.rs:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4/// Abstraction over a reader which hashes the data being read
5#[derive(Debug)]
6pub struct HashReader<D: Digest, R: io::Read> {
7 reader: R,
8 hasher: D,
9}
10
11impl<D: Digest, R: io::Read> HashReader<D, R> {
12 /// Construct a new `HashReader` given an existing `reader` by value.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected