pub struct BoundedEnvironmentCommandRunner {
pub timeout: Duration,
}Expand description
Non-interactive runner with a hard per-command deadline.
Output is discarded to avoid pipe backpressure from package managers. This runner is intended for protocol automation where terminal prompts are forbidden and a bounded failure is preferable to an indefinitely blocked MCP request.
Fields§
§timeout: DurationTrait Implementations§
impl Copy for BoundedEnvironmentCommandRunner
Source§impl EnvironmentCommandRunner for BoundedEnvironmentCommandRunner
impl EnvironmentCommandRunner for BoundedEnvironmentCommandRunner
fn run(&self, program: &str, args: &[OsString]) -> CascadeResult<ProbeOutput>
Auto Trait Implementations§
impl Freeze for BoundedEnvironmentCommandRunner
impl RefUnwindSafe for BoundedEnvironmentCommandRunner
impl Send for BoundedEnvironmentCommandRunner
impl Sync for BoundedEnvironmentCommandRunner
impl Unpin for BoundedEnvironmentCommandRunner
impl UnsafeUnpin for BoundedEnvironmentCommandRunner
impl UnwindSafe for BoundedEnvironmentCommandRunner
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