pub struct TerminateTreeConfig {
pub grace_timeout_ms: u64,
pub kill_timeout_ms: u64,
pub signal: i32,
pub kill_signal: i32,
}Expand description
Configuration for PID-based terminate-tree.
This is intentionally small and conservative; higher-level spawn-in-group APIs can provide stronger guarantees.
Fields§
§grace_timeout_ms: u64Timeout before escalation.
kill_timeout_ms: u64Timeout to wait after escalation signal.
signal: i32Signal to send first (default SIGTERM).
kill_signal: i32Signal to send on escalation (default SIGKILL).
Trait Implementations§
Source§impl Clone for TerminateTreeConfig
impl Clone for TerminateTreeConfig
Source§impl Debug for TerminateTreeConfig
impl Debug for TerminateTreeConfig
Source§impl Default for TerminateTreeConfig
impl Default for TerminateTreeConfig
Source§impl<'de> Deserialize<'de> for TerminateTreeConfig
impl<'de> Deserialize<'de> for TerminateTreeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TerminateTreeConfig
impl RefUnwindSafe for TerminateTreeConfig
impl Send for TerminateTreeConfig
impl Sync for TerminateTreeConfig
impl Unpin for TerminateTreeConfig
impl UnsafeUnpin for TerminateTreeConfig
impl UnwindSafe for TerminateTreeConfig
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