pub struct MonitorPage { /* private fields */ }
Expand description
Holds information about the monitor page and registered monitors.
Implementations§
Source§impl MonitorPage
impl MonitorPage
Sourcepub fn set_gpa(&self, gpa: Option<u64>) -> Option<u64>
pub fn set_gpa(&self, gpa: Option<u64>) -> Option<u64>
Sets the GPA of the monitor page currently in use.
Sourcepub fn gpa(&self) -> Option<u64>
pub fn gpa(&self) -> Option<u64>
Gets the current GPA of the monitor page, or None if no monitor page is in use.
Sourcepub fn register_monitor(
&self,
monitor_id: MonitorId,
connection_id: u32,
) -> Box<dyn Send>
pub fn register_monitor( &self, monitor_id: MonitorId, connection_id: u32, ) -> Box<dyn Send>
Registers a monitored interrupt, optionally using a pre-existing ID. The returned struct will unregister the ID when dropped.
§Panics
Panics if monitor_id is already in use.
Trait Implementations§
Source§impl Debug for MonitorPage
impl Debug for MonitorPage
Auto Trait Implementations§
impl !Freeze for MonitorPage
impl RefUnwindSafe for MonitorPage
impl Send for MonitorPage
impl Sync for MonitorPage
impl Unpin for MonitorPage
impl UnwindSafe for MonitorPage
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