pub struct ShutdownConfig {
pub timeout_seconds: u64,
}Expand description
Graceful shutdown configuration.
Controls how the proxy handles SIGTERM/SIGINT signals during Kubernetes pod termination. The proxy drains in-flight connections, waits for background tasks (trace capture, security analysis) to complete, and then exits cleanly.
§Example (YAML)
shutdown:
timeout_seconds: 30Fields§
§timeout_seconds: u64Maximum seconds to wait for in-flight tasks to complete after a shutdown signal is received. After this timeout the process exits regardless of pending work.
Trait Implementations§
Source§impl Clone for ShutdownConfig
impl Clone for ShutdownConfig
Source§fn clone(&self) -> ShutdownConfig
fn clone(&self) -> ShutdownConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ShutdownConfig
impl Debug for ShutdownConfig
Source§impl Default for ShutdownConfig
impl Default for ShutdownConfig
Source§impl<'de> Deserialize<'de> for ShutdownConfig
impl<'de> Deserialize<'de> for ShutdownConfig
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 ShutdownConfig
impl RefUnwindSafe for ShutdownConfig
impl Send for ShutdownConfig
impl Sync for ShutdownConfig
impl Unpin for ShutdownConfig
impl UnsafeUnpin for ShutdownConfig
impl UnwindSafe for ShutdownConfig
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