Skip to main content

Client

Trait Client 

Source
pub trait Client {
    // Required method
    fn command_complete(
        &self,
        buffer: Option<&'static mut [u8]>,
        len: usize,
        status: Result<(), ErrorCode>,
    );
}

Required Methods§

Source

fn command_complete( &self, buffer: Option<&'static mut [u8]>, len: usize, status: Result<(), ErrorCode>, )

Called when set_addr, write or read are complete

set_address does not return a buffer write and read return a buffer len should be set to the number of data elements written

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§