pub struct InMemoryHotplugBackend {
pub calls: Mutex<Vec<(bool, u64, u64)>>,
}Expand description
Test backend that records plug / unplug calls without doing any host
mmap work. Useful for unit tests; production code wires HvfVm.
Fields§
§calls: Mutex<Vec<(bool, u64, u64)>>Calls in order: (true, base, len) for plug, (false, base, len) for
unplug.
Trait Implementations§
Source§impl Debug for InMemoryHotplugBackend
impl Debug for InMemoryHotplugBackend
Source§impl Default for InMemoryHotplugBackend
impl Default for InMemoryHotplugBackend
Source§fn default() -> InMemoryHotplugBackend
fn default() -> InMemoryHotplugBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryHotplugBackend
impl !RefUnwindSafe for InMemoryHotplugBackend
impl Send for InMemoryHotplugBackend
impl Sync for InMemoryHotplugBackend
impl Unpin for InMemoryHotplugBackend
impl UnsafeUnpin for InMemoryHotplugBackend
impl UnwindSafe for InMemoryHotplugBackend
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