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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".