pub struct VfioPciConfig {
device: Arc<VfioDevice>,
}Fields§
§device: Arc<VfioDevice>Implementations§
Source§impl VfioPciConfig
impl VfioPciConfig
pub fn new(device: Arc<VfioDevice>) -> Self
pub fn read_config<T: IntoBytes + FromBytes>(&self, offset: u32) -> T
pub fn write_config<T: Immutable + IntoBytes>(&self, config: T, offset: u32)
Sourcepub fn set_bus_master(&self)
pub fn set_bus_master(&self)
Set the VFIO device this config refers to as the bus master.
Auto Trait Implementations§
impl Freeze for VfioPciConfig
impl RefUnwindSafe for VfioPciConfig
impl Send for VfioPciConfig
impl Sync for VfioPciConfig
impl Unpin for VfioPciConfig
impl UnwindSafe for VfioPciConfig
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