pub enum Capability {
Pure,
ReadFs,
WriteFs,
Net,
Process,
Device,
}Expand description
Coarse capability class — the decision key handed to Policy::allow.
Ordering follows the O7 risk total order
(Device > Process > Net > WriteFs > ReadFs > Pure); a cross-class
declaration resolves to the highest-ranked class.
Variants§
Pure
Pure computation, no side effects.
ReadFs
Reads files.
WriteFs
Writes files.
Net
Network access.
Process
Spawns processes.
Device
Device / GUI operations.
Implementations§
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
impl Copy for Capability
Source§impl Debug for Capability
impl Debug for Capability
Source§impl Display for Capability
impl Display for Capability
impl Eq for Capability
Source§impl Hash for Capability
impl Hash for Capability
Source§impl Ord for Capability
impl Ord for Capability
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Capability
impl PartialEq for Capability
Source§impl PartialOrd for Capability
impl PartialOrd for Capability
impl StructuralPartialEq for Capability
Auto Trait Implementations§
impl Forget for Capability
impl Freeze for Capability
impl Move for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnsafeUnpin for Capability
impl UnwindSafe for Capability
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