pub struct ShutdownRequest {
pub detach_session_end_hooks: Option<bool>,
pub reason: Option<String>,
pub type: Option<ShutdownType>,
}Expand description
Parameters for shutting down the session
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§detach_session_end_hooks: Option<bool>Dispatch deferred sessionEnd hooks in the background with their full per-hook timeoutSec instead of awaiting them under the short shared shutdown budget. Set this when the host process keeps running after the session closes (for example the CLI’s /clear), so a slow hook neither blocks the close nor is aborted. Hooks still detached when the process later exits are terminated with it. Defaults to false.
reason: Option<String>Optional human-readable reason. Typically the message of the error that triggered shutdown when type is ‘error’.
type: Option<ShutdownType>Why the session is being shut down. Defaults to “routine” when omitted.
Trait Implementations§
Source§impl Clone for ShutdownRequest
impl Clone for ShutdownRequest
Source§fn clone(&self) -> ShutdownRequest
fn clone(&self) -> ShutdownRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more