pub struct ExecutionSpec {
pub id: Option<String>,
pub cmd: Vec<String>,
pub env: HashMap<String, String>,
pub working_dir: String,
pub user: String,
pub tty: bool,
pub tty_size: Option<(u16, u16)>,
pub timeout_seconds: u32,
pub stdin: bool,
}Expand description
Parameters for starting an execution.
Fields§
§id: Option<String>Caller-supplied id for idempotent retry (auto-generated when None).
cmd: Vec<String>Command and arguments.
env: HashMap<String, String>Environment variable overrides.
working_dir: StringWorking directory (empty = rootfs default).
user: StringUser to run as (empty = root).
tty: boolAllocate a pseudo-TTY (stdout carries the merged PTY stream).
tty_size: Option<(u16, u16)>Initial terminal size when tty is set.
timeout_seconds: u32Kill the process after this many seconds (0 = no timeout).
stdin: boolKeep stdin open for ComputerManager::write_stdin. When false the
process starts with stdin already at EOF (run semantics).
Trait Implementations§
Source§impl Clone for ExecutionSpec
impl Clone for ExecutionSpec
Source§impl Debug for ExecutionSpec
impl Debug for ExecutionSpec
Auto Trait Implementations§
impl Freeze for ExecutionSpec
impl RefUnwindSafe for ExecutionSpec
impl Send for ExecutionSpec
impl Sync for ExecutionSpec
impl Unpin for ExecutionSpec
impl UnsafeUnpin for ExecutionSpec
impl UnwindSafe for ExecutionSpec
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