pub struct Device { /* private fields */ }
Implementations§
Source§impl Device
impl Device
pub fn info(&self) -> Result<DeviceInfo>
pub fn region_info(&self, index: u32) -> Result<RegionInfo>
pub fn irq_info(&self, index: u32) -> Result<IrqInfo>
pub fn map(&self, offset: u64, len: usize, write: bool) -> Result<MappedRegion>
pub fn map_msix<I>(&self, start: u32, eventfd: I) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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