#[non_exhaustive]pub enum ProtectionCheckingMode {
CheckingActualProtection,
CheckingRequestedProtection,
}
Expand description
Protection checked by SELinux on mmap()
and mprotect()
calls.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CheckingActualProtection
Actual protection that will be applied by the kernel
(including the effects of READ_IMPLIES_EXEC
).
CheckingRequestedProtection
Protection requested by the application.
Trait Implementations§
Source§impl Clone for ProtectionCheckingMode
impl Clone for ProtectionCheckingMode
Source§fn clone(&self) -> ProtectionCheckingMode
fn clone(&self) -> ProtectionCheckingMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProtectionCheckingMode
impl Debug for ProtectionCheckingMode
Source§impl Hash for ProtectionCheckingMode
impl Hash for ProtectionCheckingMode
Source§impl Ord for ProtectionCheckingMode
impl Ord for ProtectionCheckingMode
Source§fn cmp(&self, other: &ProtectionCheckingMode) -> Ordering
fn cmp(&self, other: &ProtectionCheckingMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProtectionCheckingMode
impl PartialEq for ProtectionCheckingMode
Source§impl PartialOrd for ProtectionCheckingMode
impl PartialOrd for ProtectionCheckingMode
impl Copy for ProtectionCheckingMode
impl Eq for ProtectionCheckingMode
impl StructuralPartialEq for ProtectionCheckingMode
Auto Trait Implementations§
impl Freeze for ProtectionCheckingMode
impl RefUnwindSafe for ProtectionCheckingMode
impl Send for ProtectionCheckingMode
impl Sync for ProtectionCheckingMode
impl Unpin for ProtectionCheckingMode
impl UnwindSafe for ProtectionCheckingMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more