pub struct ShellExec;Expand description
Capability that executes commands with full telemetry and audit.
§Security
Commands are executed via Command::new(program) with explicit argument
separation — no shell interpretation. Shell metacharacters (;, |, &,
>, <, $(), backticks) are treated as literal characters, preventing
shell injection attacks (FINDING #5).
Every command is logged to the WAL for audit purposes.
Trait Implementations§
Source§impl Capability for ShellExec
impl Capability for ShellExec
Source§fn schema(&self) -> Value
fn schema(&self) -> Value
Returns the JSON Schema for ShellExec arguments.
Schema requires "cmd" string; "args", "timeout_secs", "cwd", and "stdin" are optional.
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Returns a one-line human-readable description of what this capability does. Read more
Auto Trait Implementations§
impl Freeze for ShellExec
impl RefUnwindSafe for ShellExec
impl Send for ShellExec
impl Sync for ShellExec
impl Unpin for ShellExec
impl UnsafeUnpin for ShellExec
impl UnwindSafe for ShellExec
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