pub struct ExternallyManagedMmioIntercepts;
Expand description
A zero sized type that has a no-op impl
of RegisterMmioIntercept
.
As the name suggests, this type should be used when a ChipsetDevice
is
hosted outside of a traditional “chipset” context, where some external code
is responsible for managing the device’s MMIO intercepts.
e.g: A ChipsetDevice that supports PCI could potentially be reused inside a wrapper type that intercepts PCI config space reads/writes, and takes care of BAR management for the device.
That said, if you find yourself reaching for this type (outside the context of a test), you’re probably doing something wrong. Consider implementing a proper chipset to host the device on instead.
Trait Implementations§
source§impl RegisterMmioIntercept for ExternallyManagedMmioIntercepts
impl RegisterMmioIntercept for ExternallyManagedMmioIntercepts
source§fn new_io_region(
&mut self,
_region_name: &str,
_len: u64,
) -> Box<dyn ControlMmioIntercept>
fn new_io_region( &mut self, _region_name: &str, _len: u64, ) -> Box<dyn ControlMmioIntercept>
Registers a new IO region of the given length.
Auto Trait Implementations§
impl Freeze for ExternallyManagedMmioIntercepts
impl RefUnwindSafe for ExternallyManagedMmioIntercepts
impl Send for ExternallyManagedMmioIntercepts
impl Sync for ExternallyManagedMmioIntercepts
impl Unpin for ExternallyManagedMmioIntercepts
impl UnwindSafe for ExternallyManagedMmioIntercepts
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