tvix_castore::hashing_reader

Type Alias B3HashingReader

source
pub type B3HashingReader<R> = HashingReader<R, Hasher>;

Aliased Type§

struct B3HashingReader<R> {
    inner: R,
    hasher: Hasher,
}

Fields§

§inner: R§hasher: Hasher

Implementations

source§

impl<R, H> HashingReader<R, H>
where R: AsyncRead, H: Digest,

source

pub fn from(r: R) -> Self

source

pub fn digest(self) -> Output<H>

Return the digest.

Trait Implementations

source§

impl<R, H> AsyncRead for HashingReader<R, H>
where R: AsyncRead, H: Digest,

source§

fn poll_read( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>, ) -> Poll<Result<()>>

Attempts to read from the AsyncRead into buf. Read more
source§

impl<'__pin, R, H> Unpin for HashingReader<R, H>
where PinnedFieldsOf<__Origin<'__pin, R, H>>: Unpin, R: AsyncRead, H: Digest,