Trait ScreenDevice

Source
pub trait ScreenDevice:
    Debug
    + Send
    + Sync {
    // Required methods
    fn send_raw(
        &mut self,
        commands: &mut (dyn Iterator<Item = Command> + Send + Sync),
    ) -> Result<(), Error>;
    fn flush<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn blocking_get_size(&mut self) -> Result<CoordPair, Error>;
}

Required Methods§

Source

fn send_raw( &mut self, commands: &mut (dyn Iterator<Item = Command> + Send + Sync), ) -> Result<(), Error>

Source

fn flush<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn blocking_get_size(&mut self) -> Result<CoordPair, Error>

Implementations on Foreign Types§

Source§

impl<'a, D> ScreenDevice for &'a mut D
where D: ScreenDevice + ?Sized,

Source§

fn send_raw( &mut self, commands: &mut (dyn Iterator<Item = Command> + Send + Sync), ) -> Result<(), Error>

Source§

fn flush<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn blocking_get_size(&mut self) -> Result<CoordPair, Error>

Source§

impl<D> ScreenDevice for Box<D>
where D: ScreenDevice + ?Sized,

Source§

fn send_raw( &mut self, commands: &mut (dyn Iterator<Item = Command> + Send + Sync), ) -> Result<(), Error>

Source§

fn flush<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn blocking_get_size(&mut self) -> Result<CoordPair, Error>

Implementors§