Enum mmap::MapOption
[−]
[src]
pub enum MapOption {
MapReadable,
MapWritable,
MapExecutable,
MapAddr(*const u8),
MapFd(c_int),
MapOffset(usize),
MapNonStandardFlags(c_int),
}Options the memory map is created with
Variants
MapReadableThe memory should be readable
MapWritableThe memory should be writable
MapExecutableThe memory should be executable
MapAddr(*const u8)Create a map for a specific address range. Corresponds to MAP_FIXED on
POSIX.
MapFd(c_int)Create a memory mapping for a file with a given fd.
MapOffset(usize)When using MapFd, the start of the map is usize bytes from the start
of the file.
MapNonStandardFlags(c_int)On POSIX, this can be used to specify the default flags passed to
mmap. By default it uses MAP_PRIVATE and, if not using MapFd,
MAP_ANON. This will override both of those. This is platform-specific
(the exact values used) and ignored on Windows.
Trait Implementations
impl Clone for MapOption[src]
fn clone(&self) -> MapOption
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more