pub struct MmapConfig {
pub use_huge_pages: bool,
pub populate: bool,
pub lock_memory: bool,
}
Expand description
Memory mapping configuration
Fields§
§use_huge_pages: bool
Whether to use huge pages if available
populate: bool
Whether to populate the mapping (fault pages immediately)
lock_memory: bool
Whether to lock the mapping in memory
Trait Implementations§
Source§impl Clone for MmapConfig
impl Clone for MmapConfig
Source§fn clone(&self) -> MmapConfig
fn clone(&self) -> MmapConfig
Returns a duplicate 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 MmapConfig
impl Debug for MmapConfig
Source§impl Default for MmapConfig
impl Default for MmapConfig
Source§fn default() -> MmapConfig
fn default() -> MmapConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MmapConfig
impl RefUnwindSafe for MmapConfig
impl Send for MmapConfig
impl Sync for MmapConfig
impl Unpin for MmapConfig
impl UnwindSafe for MmapConfig
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