pub trait Client {
// Required methods
fn input_done(
&self,
result: Result<(), ErrorCode>,
buffer: SubSliceMut<'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§
Sourcefn input_done(
&self,
result: Result<(), ErrorCode>,
buffer: SubSliceMut<'static, u8>,
)
fn input_done( &self, result: Result<(), ErrorCode>, buffer: SubSliceMut<'static, u8>, )
Called when the current data chunk has been processed by the CRC engine. Further data may be supplied when this callback is received.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".