pub enum MemmapMode {
ReadOnly,
ReadWrite,
CopyOnWrite,
}Expand description
Mode for memory-mapped file access.
Variants§
ReadOnly
Read-only memory mapping. The file is opened for reading and the resulting slice is immutable.
ReadWrite
Read-write memory mapping. Modifications are written back to the underlying file.
CopyOnWrite
Copy-on-write memory mapping. Modifications are kept in memory and are not written back to the file.
Trait Implementations§
Source§impl Clone for MemmapMode
impl Clone for MemmapMode
Source§fn clone(&self) -> MemmapMode
fn clone(&self) -> MemmapMode
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 MemmapMode
impl Debug for MemmapMode
Source§impl PartialEq for MemmapMode
impl PartialEq for MemmapMode
impl Copy for MemmapMode
impl Eq for MemmapMode
impl StructuralPartialEq for MemmapMode
Auto Trait Implementations§
impl Freeze for MemmapMode
impl RefUnwindSafe for MemmapMode
impl Send for MemmapMode
impl Sync for MemmapMode
impl Unpin for MemmapMode
impl UnsafeUnpin for MemmapMode
impl UnwindSafe for MemmapMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.