pub enum LifecycleTerminalState {
Clean,
Forced,
}Expand description
How the supervisor learned the cell terminated, for the
terminalState field of lifecycle_destroyed_data_v1.
outcome answers “did the run succeed?” (no phase error). This enum
answers a different question that audit cares about: “did we observe a
real exit, or did we give up and kill it?”
Clean: an authenticated exit code arrived through the in-VM bridge (Firecracker + cellos-init vsock). Whatever code arrived is the truth.Forced: the supervisor never received an authenticated exit code — the bridge errored out (vsock channel closed before the 4 bytes were delivered) and teardown proceeded via SIGKILL. Any exit code recorded on this path is synthetic (e.g. -1) and must not be trusted.
Omitted from the event payload (encoded as None) on host backends that
do not run an in-VM bridge, since the clean/forced distinction has no
meaning when the supervisor itself owns the workload process.
Variants§
Trait Implementations§
Source§impl Clone for LifecycleTerminalState
impl Clone for LifecycleTerminalState
Source§fn clone(&self) -> LifecycleTerminalState
fn clone(&self) -> LifecycleTerminalState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LifecycleTerminalState
impl Debug for LifecycleTerminalState
Source§impl PartialEq for LifecycleTerminalState
impl PartialEq for LifecycleTerminalState
Source§fn eq(&self, other: &LifecycleTerminalState) -> bool
fn eq(&self, other: &LifecycleTerminalState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LifecycleTerminalState
impl Serialize for LifecycleTerminalState
impl Copy for LifecycleTerminalState
impl Eq for LifecycleTerminalState
impl StructuralPartialEq for LifecycleTerminalState
Auto Trait Implementations§
impl Freeze for LifecycleTerminalState
impl RefUnwindSafe for LifecycleTerminalState
impl Send for LifecycleTerminalState
impl Sync for LifecycleTerminalState
impl Unpin for LifecycleTerminalState
impl UnsafeUnpin for LifecycleTerminalState
impl UnwindSafe for LifecycleTerminalState
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