pub struct VirtioDeviceArgs<'a> {
pub vm: &'a dyn Vm,
pub resources: &'a mut SystemAllocator,
pub add_control_tube: &'a mut dyn FnMut(AnyControlTube),
pub protection_type: ProtectionType,
}Expand description
Arguments to VirtioDeviceModule::create.
Fields§
§vm: &'a dyn Vm§resources: &'a mut SystemAllocator§add_control_tube: &'a mut dyn FnMut(AnyControlTube)§protection_type: ProtectionTypeAuto Trait Implementations§
impl<'a> Freeze for VirtioDeviceArgs<'a>
impl<'a> !RefUnwindSafe for VirtioDeviceArgs<'a>
impl<'a> !Send for VirtioDeviceArgs<'a>
impl<'a> !Sync for VirtioDeviceArgs<'a>
impl<'a> Unpin for VirtioDeviceArgs<'a>
impl<'a> !UnwindSafe for VirtioDeviceArgs<'a>
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