pub enum MmapMode {
ReadOnly,
ReadWrite,
CopyOnWrite,
}
Expand description
Access mode for a memory-mapped file.
Variants§
ReadOnly
Read-only mapping.
ReadWrite
Read-write mapping.
CopyOnWrite
Copy-on-Write mapping (private). Writes affect this mapping only; the underlying file remains unchanged.
Trait Implementations§
impl Copy for MmapMode
impl Eq for MmapMode
impl StructuralPartialEq for MmapMode
Auto Trait Implementations§
impl Freeze for MmapMode
impl RefUnwindSafe for MmapMode
impl Send for MmapMode
impl Sync for MmapMode
impl Unpin for MmapMode
impl UnwindSafe for MmapMode
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