#[non_exhaustive]pub enum ExitKind {
CleanShutdown,
UnhandledError,
UsageError,
ConfigError,
LeaseUnavailable,
SdkSurfaceUnavailable,
Crash,
}Expand description
Semantic host-exit class shared with the Python and TypeScript SDKs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CleanShutdown
Exit code 0: the host shut down cleanly.
UnhandledError
Exit code 1: the host failed for a reason it could not report over the protocol; its stderr says why.
UsageError
Exit code 2: the host refused its command-line arguments.
ConfigError
Exit code 3: the host could not load a usable configuration, profile or credentials.
Exit code 4: another live process owns the session the host was started to load.
Exit code 5: this host build does not serve the SDK surface, whatever the arguments.
Crash
Any other exit code, or an exit by signal (an out-of-memory kill, for example).
Trait Implementations§
impl Copy for ExitKind
impl Eq for ExitKind
impl StructuralPartialEq for ExitKind
Auto Trait Implementations§
impl Freeze for ExitKind
impl RefUnwindSafe for ExitKind
impl Send for ExitKind
impl Sync for ExitKind
impl Unpin for ExitKind
impl UnsafeUnpin for ExitKind
impl UnwindSafe for ExitKind
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