pub struct AdvancedMmap { /* private fields */ }Expand description
Advanced memory mapping with configuration
Implementations§
Source§impl AdvancedMmap
impl AdvancedMmap
Sourcepub unsafe fn new<P: AsRef<Path>>(path: P, config: MmapConfig) -> Result<Self>
pub unsafe fn new<P: AsRef<Path>>(path: P, config: MmapConfig) -> Result<Self>
Create an advanced memory map with configuration.
Huge pages are not supported for file-backed mappings and are rejected instead of being silently ignored.
§Safety
The caller must ensure that the mapped file’s contents and length are not modified for the lifetime of the returned mapping, including through other file handles or processes.
Sourcepub fn config(&self) -> &MmapConfig
pub fn config(&self) -> &MmapConfig
Get the configuration used
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdvancedMmap
impl RefUnwindSafe for AdvancedMmap
impl Send for AdvancedMmap
impl Sync for AdvancedMmap
impl Unpin for AdvancedMmap
impl UnsafeUnpin for AdvancedMmap
impl UnwindSafe for AdvancedMmap
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