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§
Sourcefn get_var_screen_info(&self) -> Result<fb_var_screeninfo>
fn get_var_screen_info(&self) -> Result<fb_var_screeninfo>
FBIOGET_VSCREENINFO.
Sourcefn put_var_screen_info(&mut self, info: &fb_var_screeninfo) -> Result<()>
fn put_var_screen_info(&mut self, info: &fb_var_screeninfo) -> Result<()>
FBIOPUT_VSCREENINFO.
Sourcefn get_fix_screen_info(&self) -> Result<fb_fix_screeninfo>
fn get_fix_screen_info(&self) -> Result<fb_fix_screeninfo>
FBIOGET_FSCREENINFO.
Sourcefn map(&self, length: usize) -> Result<FbMapping>
fn map(&self, length: usize) -> Result<FbMapping>
Maps length bytes of the device’s memory for reading and writing.
Sourcefn wait_for_vsync(&self)
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§
impl IFbDevice for FileFbDevice
impl IFbDevice for LinuxFbDevice
Available on Linux only.