pub struct VirtIOGPU<'a, 'b> { /* private fields */ }Expand description
Driver for a VirtIO GPUDevice-class device.
Implements Tock’s Screen HIL, and supports a single head with
the ARGB_8888 pixel mode.
Implementations§
Trait Implementations§
Source§impl DeferredCallClient for VirtIOGPU<'_, '_>
 
impl DeferredCallClient for VirtIOGPU<'_, '_>
Source§impl<'a> Screen<'a> for VirtIOGPU<'a, '_>
 
impl<'a> Screen<'a> for VirtIOGPU<'a, '_>
Source§fn set_client(&self, client: &'a dyn ScreenClient)
 
fn set_client(&self, client: &'a dyn ScreenClient)
Set the object to receive the asynchronous command callbacks.
Source§fn get_resolution(&self) -> (usize, usize)
 
fn get_resolution(&self) -> (usize, usize)
Get a tuple 
(width, height) with the current resolution (in pixels). Read moreSource§fn get_pixel_format(&self) -> ScreenPixelFormat
 
fn get_pixel_format(&self) -> ScreenPixelFormat
Get the current pixel format. Read more
Source§fn get_rotation(&self) -> ScreenRotation
 
fn get_rotation(&self) -> ScreenRotation
Get the current rotation. Read more
Source§fn set_write_frame(
    &self,
    x: usize,
    y: usize,
    width: usize,
    height: usize,
) -> Result<(), ErrorCode>
 
fn set_write_frame( &self, x: usize, y: usize, width: usize, height: usize, ) -> Result<(), ErrorCode>
Sets the write frame. Read more
Source§fn write(
    &self,
    buffer: SubSliceMut<'static, u8>,
    continue_write: bool,
) -> Result<(), ErrorCode>
 
fn write( &self, buffer: SubSliceMut<'static, u8>, continue_write: bool, ) -> Result<(), ErrorCode>
Write data from 
buffer to the selected write frame. Read moreSource§fn set_brightness(&self, _brightness: u16) -> Result<(), ErrorCode>
 
fn set_brightness(&self, _brightness: u16) -> Result<(), ErrorCode>
Set the display brightness value. Read more
Source§impl<'b> SplitVirtqueueClient<'b> for VirtIOGPU<'_, 'b>
 
impl<'b> SplitVirtqueueClient<'b> for VirtIOGPU<'_, 'b>
fn buffer_chain_ready( &self, _queue_number: u32, buffer_chain: &mut [Option<VirtqueueBuffer<'b>>], bytes_used: usize, )
Source§impl VirtIODeviceDriver for VirtIOGPU<'_, '_>
 
impl VirtIODeviceDriver for VirtIOGPU<'_, '_>
Source§fn negotiate_features(&self, _offered_features: u64) -> Option<u64>
 
fn negotiate_features(&self, _offered_features: u64) -> Option<u64>
VirtIO feature negotiation. Read more
Source§fn device_type(&self) -> VirtIODeviceType
 
fn device_type(&self) -> VirtIODeviceType
VirtIO device type which the driver supports. Read more
Auto Trait Implementations§
impl<'a, 'b> !Freeze for VirtIOGPU<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for VirtIOGPU<'a, 'b>
impl<'a, 'b> !Send for VirtIOGPU<'a, 'b>
impl<'a, 'b> !Sync for VirtIOGPU<'a, 'b>
impl<'a, 'b> Unpin for VirtIOGPU<'a, 'b>
impl<'a, 'b> !UnwindSafe for VirtIOGPU<'a, 'b>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more