Trait axdriver::prelude::DisplayDriverOps

pub trait DisplayDriverOps: BaseDriverOps {
    // Required methods
    fn info(&self) -> DisplayInfo;
    fn fb(&self) -> FrameBuffer<'_>;
    fn need_flush(&self) -> bool;
    fn flush(&mut self) -> Result<(), DevError>;
}
Available on crate feature display only.
Expand description

Operations that require a graphics device driver to implement.

Required Methods§

fn info(&self) -> DisplayInfo

Get the display information.

fn fb(&self) -> FrameBuffer<'_>

Get the framebuffer.

fn need_flush(&self) -> bool

Whether need to flush the framebuffer to the screen.

fn flush(&mut self) -> Result<(), DevError>

Flush framebuffer to the screen.

Implementations on Foreign Types§

§

impl<H, T> DisplayDriverOps for VirtIoGpuDev<H, T>
where H: Hal, T: Transport,

§

fn info(&self) -> DisplayInfo

§

fn fb(&self) -> FrameBuffer<'_>

§

fn need_flush(&self) -> bool

§

fn flush(&mut self) -> Result<(), DevError>

Implementors§