pub struct ExecLimits {
pub default_timeout: Duration,
pub max_timeout: Duration,
pub max_output_bytes: usize,
pub kill_grace: Duration,
}Expand description
Limits on shell execution. Defaults mirror Grok Build (the primary model).
Fields§
§default_timeout: DurationTimeout used when a call passes none (grok/codex default = 10s).
max_timeout: DurationHard ceiling; a caller-supplied timeout is clamped to this.
max_output_bytes: usizeMax retained output bytes per stream before truncation (grok = 30_000).
kill_grace: DurationGrace between SIGTERM and SIGKILL when killing a timed-out/cancelled command.
Trait Implementations§
Source§impl Clone for ExecLimits
impl Clone for ExecLimits
Source§fn clone(&self) -> ExecLimits
fn clone(&self) -> ExecLimits
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 moreSource§impl Debug for ExecLimits
impl Debug for ExecLimits
Auto Trait Implementations§
impl Freeze for ExecLimits
impl RefUnwindSafe for ExecLimits
impl Send for ExecLimits
impl Sync for ExecLimits
impl Unpin for ExecLimits
impl UnsafeUnpin for ExecLimits
impl UnwindSafe for ExecLimits
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