pub struct TimeoutConfig {
pub signal: i32,
pub kill_after: Duration,
pub grouping: GroupingMode,
pub preserve_status: bool,
}Expand description
Configuration for timeout execution.
Fields§
§signal: i32Initial signal to send on timeout.
Default: SIGTERM (15)
kill_after: DurationDelay before escalating to SIGKILL if process doesn’t exit.
Default: 10 seconds
grouping: GroupingModeProcess grouping strategy.
Default: GroupByDefault
preserve_status: boolPropagate child exit code when command completes normally.
When true, the timeout exit code matches the child’s exit code.
When false, successful completion returns exit code 0.
Default: false
Trait Implementations§
Source§impl Clone for TimeoutConfig
impl Clone for TimeoutConfig
Source§impl Debug for TimeoutConfig
impl Debug for TimeoutConfig
Auto Trait Implementations§
impl Freeze for TimeoutConfig
impl RefUnwindSafe for TimeoutConfig
impl Send for TimeoutConfig
impl Sync for TimeoutConfig
impl Unpin for TimeoutConfig
impl UnsafeUnpin for TimeoutConfig
impl UnwindSafe for TimeoutConfig
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