Struct swap::userfaultfd::Factory
source · pub struct Factory {
dev_file: Option<File>,
}
Expand description
Factory for Userfaultfd.
If /dev/userfaultfd
(introduced from Linux 6.1) exists, creates userfaultfd from the dev file.
Otherwise use userfaultfd(2)
to create a userfaultfd.
Fields§
§dev_file: Option<File>
Implementations§
Trait Implementations§
source§impl AsRawDescriptors for Factory
impl AsRawDescriptors for Factory
source§fn as_raw_descriptors(&self) -> Vec<RawDescriptor>
fn as_raw_descriptors(&self) -> Vec<RawDescriptor>
Returns the underlying raw descriptors. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Factory
impl Send for Factory
impl Sync for Factory
impl Unpin for Factory
impl UnwindSafe for Factory
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