Skip to main content

CommandModePolicyContext

Trait CommandModePolicyContext 

Source
pub trait CommandModePolicyContext {
    // Required methods
    fn mode(&self) -> CommandMode;
    fn set_mode(&mut self, mode: CommandMode);
    fn approval_mode(&self) -> CommandApprovalMode;
    fn allow_shell(&self) -> bool;
    fn set_shell_access(&mut self, allow: bool);
    fn policy_locked(&self) -> bool;
}
Expand description

Operating mode, approval posture, shell access, and policy lock.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§