Struct project2::vmexit::pio::Controller
source · pub struct Controller { /* private fields */ }
Expand description
Pio vmexit controller.
Implementations§
source§impl Controller
impl Controller
sourcepub fn register(&mut self, port: u16, pio: impl PioHandler + 'static) -> bool
pub fn register(&mut self, port: u16, pio: impl PioHandler + 'static) -> bool
Insert pio handler to the index.
Return false if pio handler for index is exists. Otherwise, return true.
Trait Implementations§
source§impl VmexitController for Controller
impl VmexitController for Controller
source§fn handle<P: Probe>(
&mut self,
reason: ExitReason,
p: &mut P,
generic_vcpu_state: &mut GenericVCpuState<'_>
) -> Result<VmexitResult, VmError>
fn handle<P: Probe>( &mut self, reason: ExitReason, p: &mut P, generic_vcpu_state: &mut GenericVCpuState<'_> ) -> Result<VmexitResult, VmError>
Handle the vmexit on this controller. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl !UnwindSafe for Controller
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more