pub struct TestPcieControlMmioIntercept {
pub mapping: Option<u64>,
pub len: u64,
}Fields§
§mapping: Option<u64>§len: u64Trait Implementations§
Source§impl ControlMmioIntercept for TestPcieControlMmioIntercept
impl ControlMmioIntercept for TestPcieControlMmioIntercept
Source§fn addr(&self) -> Option<u64>
fn addr(&self) -> Option<u64>
Return the currently mapped address.
Returns None if the region is currently unmapped.
Source§fn offset_of(&self, addr: u64) -> Option<u64>
fn offset_of(&self, addr: u64) -> Option<u64>
Return the offset of addr from the region’s base address.
Returns None if the provided addr is outside of the memory
region, or the region is currently unmapped.
Source§fn region_name(&self) -> &str
fn region_name(&self) -> &str
Return the region’s name.
Auto Trait Implementations§
impl Freeze for TestPcieControlMmioIntercept
impl RefUnwindSafe for TestPcieControlMmioIntercept
impl Send for TestPcieControlMmioIntercept
impl Sync for TestPcieControlMmioIntercept
impl Unpin for TestPcieControlMmioIntercept
impl UnsafeUnpin for TestPcieControlMmioIntercept
impl UnwindSafe for TestPcieControlMmioIntercept
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