Enum memmap::Protection [] [src]

pub enum Protection {
    Read,
    ReadWrite,
    ReadCopy,
    ReadExecute,
}

Memory map protection.

Determines how a memory map may be used. If the memory map is backed by a file, then the file must have permissions corresponding to the operations the protection level allows.

Variants

A read-only memory map. Writes to the memory map will result in a panic.

A read-write memory map. Writes to the memory map will be reflected in the file after a call to Mmap::flush or after the Mmap is dropped.

A read, copy-on-write memory map. Writes to the memory map will not be carried through to the underlying file. It is unspecified whether changes made to the file after the memory map is created will be visible.

A readable and executable mapping.

Methods

impl Protection
[src]

Returns true if the Protection is writable.

Trait Implementations

impl Clone for Protection
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Protection
[src]

impl Debug for Protection
[src]

Formats the value using the given formatter.

impl PartialEq for Protection
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Protection
[src]