Struct swap::controller::SwapDeviceHelper
source · pub struct SwapDeviceHelper {
uffd_factory: Factory,
command_tube: SendTube,
}
Expand description
Helper to create SwapDeviceUffdSender from child processes (e.g. JailWarden for hotplug devices).
Fields§
§uffd_factory: Factory
§command_tube: SendTube
Trait Implementations§
source§impl AsRawDescriptors for SwapDeviceHelper
impl AsRawDescriptors for SwapDeviceHelper
source§fn as_raw_descriptors(&self) -> Vec<RawDescriptor>
fn as_raw_descriptors(&self) -> Vec<RawDescriptor>
Returns the underlying raw descriptors. Read more
source§impl PrepareFork for SwapDeviceHelper
impl PrepareFork for SwapDeviceHelper
source§fn prepare_fork(&mut self) -> Result<SwapDeviceUffdSender>
fn prepare_fork(&mut self) -> Result<SwapDeviceUffdSender>
Create a new SwapDeviceUffdSender.
Auto Trait Implementations§
impl RefUnwindSafe for SwapDeviceHelper
impl Send for SwapDeviceHelper
impl Sync for SwapDeviceHelper
impl Unpin for SwapDeviceHelper
impl UnwindSafe for SwapDeviceHelper
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