pub enum AccessPermission {
PrivilegedReadWrite = 0,
ReadWrite = 1,
PrivilegedReadOnly = 2,
ReadOnly = 3,
}Expand description
Access permissions for Stage 1 translation using Direct permissions Based on ARM DDI 0487K.a Table D8-49
Variants§
PrivilegedReadWrite = 0
Read/write access for privileged level only, no access for unprivileged AP[2:1] = 0b00 (when supporting two privilege levels) For single privilege level: Read/write access
ReadWrite = 1
Read/write access for both privileged and unprivileged levels AP[2:1] = 0b01
PrivilegedReadOnly = 2
Read-only access for privileged level only, no access for unprivileged AP[2:1] = 0b10 (when supporting two privilege levels) For single privilege level: Read-only access
ReadOnly = 3
Read-only access for both privileged and unprivileged levels AP[2:1] = 0b11
Implementations§
Source§impl AccessPermission
impl AccessPermission
Sourcepub const fn allows_unprivileged(self) -> bool
pub const fn allows_unprivileged(self) -> bool
Check if this permission allows unprivileged access
Sourcepub const fn allows_privileged_write(self) -> bool
pub const fn allows_privileged_write(self) -> bool
Check if this permission allows write access at the privileged level
Sourcepub const fn allows_unprivileged_write(self) -> bool
pub const fn allows_unprivileged_write(self) -> bool
Check if this permission allows write access at the unprivileged level
Trait Implementations§
Source§impl Clone for AccessPermission
impl Clone for AccessPermission
Source§fn clone(&self) -> AccessPermission
fn clone(&self) -> AccessPermission
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more