Skip to main content

ScreenClient

Trait 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§

Source

fn command_complete(&self, result: Result<(), ErrorCode>)

The screen will call this function to notify that a command (except write) has finished.

Source

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

Source

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".

Implementors§