pub struct Device<'a> { /* private fields */ }
Implementations§
Source§impl Device<'_>
impl Device<'_>
pub fn hardware_ids(&self) -> Result<WHV_VPCI_HARDWARE_IDS, WHvError>
pub fn probed_bars(&self) -> Result<WHV_VPCI_PROBED_BARS, WHvError>
pub fn get_notification(&self) -> Result<Option<DeviceNotification>, WHvError>
pub fn map_mmio(&self) -> Result<Vec<WHV_VPCI_MMIO_MAPPING>, WHvError>
pub fn unmap_mmio(&self) -> Result<(), WHvError>
pub fn set_power_state( &self, power_state: DEVICE_POWER_STATE, ) -> Result<(), WHvError>
pub fn read_register( &self, location: WHV_VPCI_DEVICE_REGISTER_SPACE, offset: u16, data: &mut [u8], ) -> Result<(), WHvError>
pub fn write_register( &self, location: WHV_VPCI_DEVICE_REGISTER_SPACE, offset: u16, data: &[u8], ) -> Result<(), WHvError>
pub fn map_interrupt( &self, index: u32, message_count: u32, target: &VpciInterruptTarget, ) -> Result<(u64, u32), WHvError>
pub fn unmap_interrupt(&self, index: u32) -> Result<(), WHvError>
pub fn retarget_interrupt( &self, address: u64, data: u32, target: &VpciInterruptTarget, ) -> Result<(), WHvError>
pub fn get_interrupt_target( &self, index: u32, message_number: u32, ) -> Result<VpciInterruptTarget, WHvError>
pub fn interrupt(&self, address: u64, data: u32) -> Result<(), WHvError>
Trait Implementations§
impl<'a> Copy for Device<'a>
Auto Trait Implementations§
impl<'a> Freeze for Device<'a>
impl<'a> RefUnwindSafe for Device<'a>
impl<'a> Send for Device<'a>
impl<'a> Sync for Device<'a>
impl<'a> Unpin for Device<'a>
impl<'a> UnwindSafe for Device<'a>
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