#[repr(i32)]pub enum MmapDataLoader_MlockConfig {
NoMlock = 0,
UseMlock = 1,
UseMlockIgnoreErrors = 2,
}Expand description
Describes how and whether to lock loaded pages with mlock().
Using mlock() typically loads all of the pages immediately, and will
typically ensure that they are not swapped out. The actual behavior
will depend on the host system.
Variants§
NoMlock = 0
Do not call mlock() on loaded pages.
UseMlock = 1
Call mlock() on loaded pages, failing if it fails.
UseMlockIgnoreErrors = 2
Call mlock() on loaded pages, ignoring errors if it fails.
Trait Implementations§
Source§impl Clone for MmapDataLoader_MlockConfig
impl Clone for MmapDataLoader_MlockConfig
Source§fn clone(&self) -> MmapDataLoader_MlockConfig
fn clone(&self) -> MmapDataLoader_MlockConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MmapDataLoader_MlockConfig
impl Debug for MmapDataLoader_MlockConfig
Source§impl Hash for MmapDataLoader_MlockConfig
impl Hash for MmapDataLoader_MlockConfig
impl Eq for MmapDataLoader_MlockConfig
impl StructuralPartialEq for MmapDataLoader_MlockConfig
Auto Trait Implementations§
impl Freeze for MmapDataLoader_MlockConfig
impl RefUnwindSafe for MmapDataLoader_MlockConfig
impl Send for MmapDataLoader_MlockConfig
impl Sync for MmapDataLoader_MlockConfig
impl Unpin for MmapDataLoader_MlockConfig
impl UnwindSafe for MmapDataLoader_MlockConfig
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