Enum libmmap::MemoryMapOption [] [src]

pub enum MemoryMapOption {
    Readable,
    Writable,
    Executable,
    Addr(*const u8),
    Fd(c_int),
    Offset(usize),
    NonStandardFlags(c_int),
}

Options memory map created with.

Variants

The memory should be readable.

The memory should be writable.

The memory should be executable.

Create a map for a specific address range. Corresponds to MAP_FIXED on POSIX.

Create a memory mapping for a file with a given fd.

When using MapFd, the start of the map is usize bytes from the start of the file.

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 Copy for MemoryMapOption
[src]

impl Clone for MemoryMapOption
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more