pub enum ShellRiskPolicy {
Strict,
Relaxed,
}Expand description
Policy used for static shell-risk classification.
Variants§
Strict
Preserve the conservative static classifier.
Relaxed
Temporarily bypass conservative read-only checks while keeping hard-deny protection for session-destroying commands.
Implementations§
Source§impl ShellRiskPolicy
impl ShellRiskPolicy
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Resolve the policy from SHELL_RISK_POLICY_ENV.
Trait Implementations§
Source§impl Clone for ShellRiskPolicy
impl Clone for ShellRiskPolicy
Source§fn clone(&self) -> ShellRiskPolicy
fn clone(&self) -> ShellRiskPolicy
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 ShellRiskPolicy
Source§impl Debug for ShellRiskPolicy
impl Debug for ShellRiskPolicy
impl Eq for ShellRiskPolicy
Source§impl PartialEq for ShellRiskPolicy
impl PartialEq for ShellRiskPolicy
impl StructuralPartialEq for ShellRiskPolicy
Auto Trait Implementations§
impl Freeze for ShellRiskPolicy
impl RefUnwindSafe for ShellRiskPolicy
impl Send for ShellRiskPolicy
impl Sync for ShellRiskPolicy
impl Unpin for ShellRiskPolicy
impl UnsafeUnpin for ShellRiskPolicy
impl UnwindSafe for ShellRiskPolicy
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