#[non_exhaustive]pub enum CloseAttribution {
Ours,
Theirs,
}Expand description
How the spawned-host close path credits available exit evidence.
On Unix, Ours records an accepted SDK escalation signal (SIGTERM or
SIGKILL) followed by an observed exit signal matching that signal. On
Windows and other non-Unix targets, it records an accepted kill request
before reap. Neither is proof that the request caused the exit: another
actor can win the race and leave indistinguishable exit evidence.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ours
The SDK asked the host to stop: on Unix it sent SIGTERM or SIGKILL
and the process died by that signal; on other targets its kill request
was accepted before the exit was collected, whatever the exit code.
Theirs
The exit does not meet Self::Ours. This includes a host that exited
on its own after the SDK closed its input, and, on Unix, one that caught
the SDK’s stop signal and then exited with a code.