pub enum BarMemoryKind {
Intercept(Box<dyn ControlMmioIntercept>),
SharedMem(Box<dyn MappableGuestMemory>),
Dummy,
}
Expand description
Different kinds of memory that a BAR can be backed by
Variants§
Intercept(Box<dyn ControlMmioIntercept>)
BAR memory is routed to the device’s MmioIntercept
handler
BAR memory is routed to a shared memory region
Dummy
TESTING ONLY BAR memory isn’t backed by anything!
Trait Implementations§
Source§impl Debug for BarMemoryKind
impl Debug for BarMemoryKind
Auto Trait Implementations§
impl Freeze for BarMemoryKind
impl !RefUnwindSafe for BarMemoryKind
impl Send for BarMemoryKind
impl Sync for BarMemoryKind
impl Unpin for BarMemoryKind
impl !UnwindSafe for BarMemoryKind
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