pub struct JailWardenImpl {
worker_process: Option<Child>,
main_tube: Tube,
}Expand description
Implementation of JailWarden
Fields§
§worker_process: Option<Child>§main_tube: TubeImplementations§
Source§impl JailWardenImpl
impl JailWardenImpl
Sourcepub fn new(
guest_memory: GuestMemory,
config: &Config,
swap_device_helper: Option<SwapDeviceHelper>,
) -> Result<Self>
pub fn new( guest_memory: GuestMemory, config: &Config, swap_device_helper: Option<SwapDeviceHelper>, ) -> Result<Self>
Constructor of JailWardenImpl
Trait Implementations§
Source§impl Drop for JailWardenImpl
impl Drop for JailWardenImpl
Source§impl JailWarden for JailWardenImpl
impl JailWarden for JailWardenImpl
Source§fn make_proxy_device(
&self,
resource_carrier: ResourceCarrier,
) -> Result<(Arc<Mutex<dyn BusDevice>>, Pid)>
fn make_proxy_device( &self, resource_carrier: ResourceCarrier, ) -> Result<(Arc<Mutex<dyn BusDevice>>, Pid)>
Make a PCI device, jail it, and return the proxy to the jailed device as a BusDevice.
Auto Trait Implementations§
impl Freeze for JailWardenImpl
impl RefUnwindSafe for JailWardenImpl
impl Send for JailWardenImpl
impl Sync for JailWardenImpl
impl Unpin for JailWardenImpl
impl UnwindSafe for JailWardenImpl
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