pub enum ShellRiskLevel {
SafeRead,
BoundedWrite,
NeedsApproval,
Blocked,
}Expand description
Risk level assigned to a shell command by classify_shell_command.
Variants§
SafeRead
Provably read-only; safe to auto-approve.
BoundedWrite
Writes only to well-known project-local build/test artifacts.
NeedsApproval
Cannot be statically proven safe (the default).
Blocked
On the hard-deny list; must not be dispatched.
Implementations§
Trait Implementations§
Source§impl Clone for ShellRiskLevel
impl Clone for ShellRiskLevel
Source§fn clone(&self) -> ShellRiskLevel
fn clone(&self) -> ShellRiskLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShellRiskLevel
Source§impl Debug for ShellRiskLevel
impl Debug for ShellRiskLevel
impl Eq for ShellRiskLevel
Source§impl PartialEq for ShellRiskLevel
impl PartialEq for ShellRiskLevel
Source§fn eq(&self, other: &ShellRiskLevel) -> bool
fn eq(&self, other: &ShellRiskLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShellRiskLevel
Auto Trait Implementations§
impl Freeze for ShellRiskLevel
impl RefUnwindSafe for ShellRiskLevel
impl Send for ShellRiskLevel
impl Sync for ShellRiskLevel
impl Unpin for ShellRiskLevel
impl UnsafeUnpin for ShellRiskLevel
impl UnwindSafe for ShellRiskLevel
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