Trait kernel::hil::screen::ScreenClient
source · pub trait ScreenClient {
// Required methods
fn command_complete(&self, result: Result<(), ErrorCode>);
fn write_complete(
&self,
buffer: SubSliceMut<'static, u8>,
result: Result<(), ErrorCode>,
);
fn screen_is_ready(&self);
}
Required Methods§
sourcefn command_complete(&self, result: Result<(), ErrorCode>)
fn command_complete(&self, result: Result<(), ErrorCode>)
The screen will call this function to notify that a command (except write) has finished.
sourcefn write_complete(
&self,
buffer: SubSliceMut<'static, u8>,
result: Result<(), ErrorCode>,
)
fn write_complete( &self, buffer: SubSliceMut<'static, u8>, result: Result<(), ErrorCode>, )
The screen will call this function to notify that the write command has
finished. This is different from command_complete
as it has to pass
back the write buffer
sourcefn screen_is_ready(&self)
fn screen_is_ready(&self)
Some screens need some time to start, this function is called when the screen is ready.