#[non_exhaustive]pub enum PolicyMode {
Allowlist,
Denylist,
}Expand description
Whether the command policy operates in allowlist or denylist mode.
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.
Allowlist
Only commands whose basename appears in the allowlist are permitted.
Denylist
All commands are permitted unless they match a denylist pattern.
Trait Implementations§
Source§impl Clone for PolicyMode
impl Clone for PolicyMode
Source§fn clone(&self) -> PolicyMode
fn clone(&self) -> PolicyMode
Returns a duplicate 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 PolicyMode
impl Debug for PolicyMode
Source§impl Default for PolicyMode
impl Default for PolicyMode
Source§fn default() -> PolicyMode
fn default() -> PolicyMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for PolicyMode
impl PartialEq for PolicyMode
impl Eq for PolicyMode
impl StructuralPartialEq for PolicyMode
Auto Trait Implementations§
impl Freeze for PolicyMode
impl RefUnwindSafe for PolicyMode
impl Send for PolicyMode
impl Sync for PolicyMode
impl Unpin for PolicyMode
impl UnsafeUnpin for PolicyMode
impl UnwindSafe for PolicyMode
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