pub struct ShellLimits {
pub foreground_wait: ForegroundWait,
pub timeout_cap: LiveDuration,
pub long_job_alert: LiveDuration,
pub subagent_import: ImportBudget,
pub response_window: ResponseWindow,
}Expand description
The budgets a shell runs its scripts under.
There is no Default: the values are the embedder’s, and each is a live
handle, so changing one reaches the shells already running.
Fields§
§foreground_wait: ForegroundWaitHow long a foreground call waits before a still-running script promotes to a job.
timeout_cap: LiveDurationThe largest timeout a script accepts.
long_job_alert: LiveDurationHow long a job runs before it raises one ShellEvent::LongRunning.
subagent_import: ImportBudgetThe most bytes a subagent’s sandbox may send the host while its commits are imported.
response_window: ResponseWindowHow long the agent has to act on a final memory warning.
Trait Implementations§
Source§impl Clone for ShellLimits
impl Clone for ShellLimits
Auto Trait Implementations§
impl Forget for ShellLimits
impl Freeze for ShellLimits
impl Move for ShellLimits
impl RefUnwindSafe for ShellLimits
impl Send for ShellLimits
impl Sync for ShellLimits
impl Unpin for ShellLimits
impl UnsafeUnpin for ShellLimits
impl UnwindSafe for ShellLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more