pub trait Client {
    fn input_done(
        &self,
        result: Result<(), ErrorCode>,
        buffer: LeasableMutableBuffer<'static, u8>
    ); fn crc_done(&self, result: Result<CrcOutput, ErrorCode>); }
Expand description

Client for CRC algorithm implementations

Implement this trait and use Crc::set_client in order to receive callbacks from the CRC implementation.

Required Methods

Called when the current data chunk has been processed by the CRC engine. Further data may be supplied when this callback is received.

Called when the CRC computation is finished.

Implementors