#[non_exhaustive]pub enum Subject {
None,
Opaque(String),
ReadPath(String),
WritePath(String),
Shell(String),
Url(String),
}Expand description
What a call names, as permission rules are matched against it.
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.
None
Opaque(String)
Compared to rule patterns verbatim.
ReadPath(String)
A path read; Read(...) rules apply to it as well as the tool’s own.
WritePath(String)
A path written; Edit(...) rules apply to it as well as the tool’s own.
Shell(String)
A command line, matched one simple command at a time.
Url(String)
Implementations§
Trait Implementations§
impl Eq for Subject
impl StructuralPartialEq for Subject
Auto Trait Implementations§
impl Forget for Subject
impl Freeze for Subject
impl Move for Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnsafeUnpin for Subject
impl UnwindSafe for Subject
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