Enum mmap_fixed::MemoryMapKind
source · pub enum MemoryMapKind {
MapFile(*const u8),
MapVirtual,
}
Expand description
Type of memory map
Variants§
MapFile(*const u8)
Virtual memory map. Usually used to change the permissions of a given
chunk of memory. Corresponds to VirtualAlloc
on Windows.
MapVirtual
Virtual memory map. Usually used to change the permissions of a given
chunk of memory, or for allocation. Corresponds to VirtualAlloc
on
Windows.
Trait Implementations§
source§impl Clone for MemoryMapKind
impl Clone for MemoryMapKind
source§fn clone(&self) -> MemoryMapKind
fn clone(&self) -> MemoryMapKind
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 moreimpl Copy for MemoryMapKind
Auto Trait Implementations§
impl RefUnwindSafe for MemoryMapKind
impl !Send for MemoryMapKind
impl !Sync for MemoryMapKind
impl Unpin for MemoryMapKind
impl UnwindSafe for MemoryMapKind
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