Struct devices::virtio::gpu::virtio_gpu::VirtioGpuScanout    
source · struct VirtioGpuScanout {
    width: u32,
    height: u32,
    scanout_type: SurfaceType,
    scanout_id: Option<u32>,
    display_params: Option<GpuDisplayParameters>,
    parent_surface_id: Option<u32>,
    surface_id: Option<u32>,
    parent_scanout_id: Option<u32>,
    resource_id: Option<NonZeroU32>,
    position: Option<(u32, u32)>,
}Fields§
§width: u32§height: u32§scanout_type: SurfaceType§scanout_id: Option<u32>§display_params: Option<GpuDisplayParameters>§parent_surface_id: Option<u32>§surface_id: Option<u32>§parent_scanout_id: Option<u32>§resource_id: Option<NonZeroU32>§position: Option<(u32, u32)>Implementations§
source§impl VirtioGpuScanout
 
impl VirtioGpuScanout
fn new_primary( scanout_id: u32, params: GpuDisplayParameters, ) -> VirtioGpuScanout
fn new_cursor() -> VirtioGpuScanout
fn snapshot(&self) -> VirtioGpuScanoutSnapshot
fn restore( &mut self, snapshot: VirtioGpuScanoutSnapshot, parent_surface_id: Option<u32>, display: &Rc<RefCell<GpuDisplay>>, ) -> Result<GpuResponse, GpuResponse>
fn create_surface( &mut self, display: &Rc<RefCell<GpuDisplay>>, new_parent_surface_id: Option<u32>, new_scanout_rect: Option<virtio_gpu_rect>, ) -> Result<GpuResponse, GpuResponse>
fn release_surface(&mut self, display: &Rc<RefCell<GpuDisplay>>)
fn set_mouse_mode( &mut self, display: &Rc<RefCell<GpuDisplay>>, mouse_mode: MouseMode, ) -> Result<GpuResponse, GpuResponse>
fn set_position( &mut self, display: &Rc<RefCell<GpuDisplay>>, x: u32, y: u32, ) -> Result<GpuResponse, GpuResponse>
fn commit( &self, display: &Rc<RefCell<GpuDisplay>>, ) -> Result<GpuResponse, GpuResponse>
fn flush( &mut self, display: &Rc<RefCell<GpuDisplay>>, resource: &mut VirtioGpuResource, rutabaga: &mut Rutabaga, ) -> Result<GpuResponse, GpuResponse>
fn import_resource_to_display( display: &Rc<RefCell<GpuDisplay>>, surface_id: u32, resource: &mut VirtioGpuResource, rutabaga: &mut Rutabaga, ) -> Option<u32>
Auto Trait Implementations§
impl Freeze for VirtioGpuScanout
impl RefUnwindSafe for VirtioGpuScanout
impl Send for VirtioGpuScanout
impl Sync for VirtioGpuScanout
impl Unpin for VirtioGpuScanout
impl UnwindSafe for VirtioGpuScanout
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
§impl<T> Downcast for Twhere
    T: Any,
 
impl<T> Downcast for Twhere
    T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
 
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert 
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
 
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert 
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
 
fn as_any(&self) -> &(dyn Any + 'static)
Convert 
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
 
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert 
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.