pub struct Frontend {
fence_state: Arc<Mutex<FenceState>>,
virtio_gpu: VirtioGpu,
}
Fields§
§fence_state: Arc<Mutex<FenceState>>
§virtio_gpu: VirtioGpu
Implementations§
source§impl Frontend
impl Frontend
fn new(virtio_gpu: VirtioGpu, fence_state: Arc<Mutex<FenceState>>) -> Frontend
sourcepub fn display(&mut self) -> &Rc<RefCell<GpuDisplay>>
pub fn display(&mut self) -> &Rc<RefCell<GpuDisplay>>
Returns the internal connection to the compositor and its associated state.
sourcepub fn process_display(&mut self) -> ProcessDisplayResult
pub fn process_display(&mut self) -> ProcessDisplayResult
Processes the internal display
events and returns true
if any display was closed.
sourcepub fn process_resource_bridge(&mut self, resource_bridge: &Tube) -> Result<()>
pub fn process_resource_bridge(&mut self, resource_bridge: &Tube) -> Result<()>
Processes incoming requests on resource_bridge
.
sourcepub fn process_gpu_control_command(
&mut self,
cmd: GpuControlCommand
) -> GpuControlResult
pub fn process_gpu_control_command( &mut self, cmd: GpuControlCommand ) -> GpuControlResult
Processes the GPU control command and returns the result with a bool indicating if the GPU device’s config needs to be updated.
fn process_gpu_command( &mut self, mem: &GuestMemory, cmd: GpuCommand, reader: &mut Reader ) -> Result<GpuResponse, GpuResponse>
sourcepub fn process_queue(
&mut self,
mem: &GuestMemory,
queue: &dyn QueueReader
) -> bool
pub fn process_queue( &mut self, mem: &GuestMemory, queue: &dyn QueueReader ) -> bool
Processes virtio messages on queue
.
fn process_descriptor( &mut self, mem: &GuestMemory, desc_chain: DescriptorChain ) -> Option<ReturnDescriptor>
pub fn event_poll(&self)
Auto Trait Implementations§
impl !RefUnwindSafe for Frontend
impl !Send for Frontend
impl !Sync for Frontend
impl Unpin for Frontend
impl !UnwindSafe for Frontend
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.