pub struct ExecutionSnapshot {
pub id: String,
pub sandbox_id: SandboxId,
pub tty: bool,
pub started_at: DateTime<Utc>,
pub exited_at: Option<DateTime<Utc>>,
pub exit_status: Option<ExitStatus>,
pub error: Option<String>,
pub stdout_len: u64,
pub stderr_len: u64,
pub stdin: StdinState,
}Expand description
Point-in-time view of an execution.
Fields§
§id: StringExecution id, unique within its sandbox.
sandbox_id: SandboxIdOwning sandbox.
tty: boolWhether the workload runs on a pseudo-TTY.
started_at: DateTime<Utc>When the workload was dispatched.
exited_at: Option<DateTime<Utc>>When the workload terminated (None while running).
exit_status: Option<ExitStatus>How the process terminated. None while running, and also when the
session broke before an exit was observed (see error).
error: Option<String>Set when the session broke before the process reported an exit.
stdout_len: u64Total bytes ever produced on stdout (monotonic, beyond retention).
stderr_len: u64Total bytes ever produced on stderr.
stdin: StdinStateStdin acceptance state.
Implementations§
Source§impl ExecutionSnapshot
impl ExecutionSnapshot
Sourcepub const fn is_running(&self) -> bool
pub const fn is_running(&self) -> bool
True until the workload exits (or its session breaks).
Trait Implementations§
Source§impl Clone for ExecutionSnapshot
impl Clone for ExecutionSnapshot
Auto Trait Implementations§
impl Freeze for ExecutionSnapshot
impl RefUnwindSafe for ExecutionSnapshot
impl Send for ExecutionSnapshot
impl Sync for ExecutionSnapshot
impl Unpin for ExecutionSnapshot
impl UnsafeUnpin for ExecutionSnapshot
impl UnwindSafe for ExecutionSnapshot
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