pub trait IntegrityCheck: Send {
// Required methods
fn update(&mut self, chunk: &[u8]);
fn finalize(self: Box<Self>, total: u64) -> Result<(), String>;
}Expand description
A check fed the raw bytes of an object body as they stream past, and asked to validate once the underlying reader reaches EOF.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".