Skip to main content

IFbDevice

Trait IFbDevice 

Source
pub trait IFbDevice: Send {
    // Required methods
    fn get_var_screen_info(&self) -> Result<fb_var_screeninfo>;
    fn put_var_screen_info(&mut self, info: &fb_var_screeninfo) -> Result<()>;
    fn get_fix_screen_info(&self) -> Result<fb_fix_screeninfo>;
    fn map(&self, length: usize) -> Result<FbMapping>;
    fn wait_for_vsync(&self);
}
Expand description

A framebuffer device.

Required Methods§

Source

fn get_var_screen_info(&self) -> Result<fb_var_screeninfo>

FBIOGET_VSCREENINFO.

Source

fn put_var_screen_info(&mut self, info: &fb_var_screeninfo) -> Result<()>

FBIOPUT_VSCREENINFO.

Source

fn get_fix_screen_info(&self) -> Result<fb_fix_screeninfo>

FBIOGET_FSCREENINFO.

Source

fn map(&self, length: usize) -> Result<FbMapping>

Maps length bytes of the device’s memory for reading and writing.

Source

fn wait_for_vsync(&self)

FBIO_WAITFORVSYNC; a device without it returns at once.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl IFbDevice for FileFbDevice

Source§

impl IFbDevice for LinuxFbDevice

Available on Linux only.