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§
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