pub trait Op {
// Required methods
fn update(&mut self, data: &[u8]) -> Result<()>;
fn finish_into(&mut self, buf: &mut [u8]) -> Result<usize>;
}
Expand description
An ongoing Init-Update-Finish operation.
Required Methods§
sourcefn finish_into(&mut self, buf: &mut [u8]) -> Result<usize>
fn finish_into(&mut self, buf: &mut [u8]) -> Result<usize>
Finish this operation and write the result into the given buffer. If the given buffer is not large enough the implementation must return Error::IncorrectSize.