Update Protect enum with suggestions

This commit is contained in:
Brandon Fish
2019-11-10 14:31:36 -06:00
parent 328ab0a93b
commit 1f9316b5ae

View File

@ -253,15 +253,15 @@ impl Clone for Memory {
#[derive(Serialize, Deserialize, Debug, Copy, Clone, PartialEq, Eq)] #[derive(Serialize, Deserialize, Debug, Copy, Clone, PartialEq, Eq)]
#[allow(dead_code)] #[allow(dead_code)]
pub enum Protect { pub enum Protect {
/// No protection. /// Read/write/exec allowed.
None, None,
/// Read protection. /// Read only.
Read, Read,
/// Read/write protection. /// Read/write only.
ReadWrite, ReadWrite,
/// Read/exec protection. /// Read/exec only.
ReadExec, ReadExec,
/// Read/write/exec protection. /// Read/write/exec only.
ReadWriteExec, ReadWriteExec,
} }