pub trait Sink {
type Error;
// Required method
fn write<W: Work>(
&mut self,
bytes: &[u8],
execution: &W,
) -> Result<(), Self::Error>;
}Expand description
An injected processing sink, such as a set of digest/raw verification states.
Required Associated Types§
Required Methods§
Sourcefn write<W: Work>(
&mut self,
bytes: &[u8],
execution: &W,
) -> Result<(), Self::Error>
fn write<W: Work>( &mut self, bytes: &[u8], execution: &W, ) -> Result<(), Self::Error>
Processes a chunk after admitting its complete transitive operation.
The driver pays dispatch; the callback pays actual hashing, copying, opaque state growth and fan-out before execution. No Clone/Send/Sync bound or particular cryptographic engine is required.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".