pub enum AbstractPermission {
System(Permission),
Custom {
class: AbstractObjectClass,
permission: String,
},
}
Expand description
A permission that may appear in SELinux policy or an access vector cache query.
Variants§
System(Permission)
A permission that is interpreted directly by the system. These are kernel objects such as a “process”, “file”, etc.
Custom
A permission with an arbitrary string identifier.
Implementations§
Source§impl AbstractPermission
impl AbstractPermission
pub fn new_custom(class: AbstractObjectClass, permission: String) -> Self
Trait Implementations§
Source§impl Clone for AbstractPermission
impl Clone for AbstractPermission
Source§fn clone(&self) -> AbstractPermission
fn clone(&self) -> AbstractPermission
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 AbstractPermission
impl Debug for AbstractPermission
Source§impl From<Permission> for AbstractPermission
impl From<Permission> for AbstractPermission
Source§fn from(permission: Permission) -> Self
fn from(permission: Permission) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AbstractPermission
impl PartialEq for AbstractPermission
impl StructuralPartialEq for AbstractPermission
Auto Trait Implementations§
impl Freeze for AbstractPermission
impl RefUnwindSafe for AbstractPermission
impl Send for AbstractPermission
impl Sync for AbstractPermission
impl Unpin for AbstractPermission
impl UnwindSafe for AbstractPermission
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)