Skip to main content

checksum_reader

Function checksum_reader 

Source
pub fn checksum_reader(
    reader: &mut impl Read,
) -> Result<ArtifactChecksumRecord, ArtifactError>
Expand description

Stream an already-open reader using a bounded transfer buffer.

Interrupted reads retry internally. The caller owns blocking and timeouts; no network or paid-operation retry is performed.

ยงErrors

Returns other reader IO failures unchanged; impossible byte counts reject as io::ErrorKind::InvalidData rather than indexing outside the transfer buffer.