Enum memmap::Protection
[−]
[src]
pub enum Protection { Read, ReadWrite, ReadCopy, }
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
Read | A read-only memory map. Writes to the memory map will result in a panic. | |
ReadWrite | A read-write memory map. Writes to the memory map will be reflected in
the file after a call to | |
ReadCopy | 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. |