pub struct StartCommand {
pub cmd: Vec<String>,
pub env: HashMap<String, String>,
pub working_dir: String,
pub user: String,
pub tty: bool,
pub tty_width: u16,
pub tty_height: u16,
pub timeout_seconds: u32,
}Expand description
Parameters forwarded to the guest agent as the session-start frame.
The host always serializes every field; the defaults exist for the decoder, so an agent reads a start frame from any host generation.
Fields§
§cmd: Vec<String>Program and arguments (argv), never empty.
env: HashMap<String, String>Environment for the process, replacing the agent’s own.
working_dir: StringWorking directory; empty leaves the agent’s own cwd in place.
user: StringDocker-style user spec (uid, uid:gid, name, name:group)
resolved against the sandbox rootfs; empty runs as the agent’s own
user (root inside the microVM).
tty: boolAllocate a pseudo-TTY and merge stdout/stderr into it.
tty_width: u16Initial PTY width in columns.
tty_height: u16Initial PTY height in rows.
timeout_seconds: u32Kill the process after this many seconds; 0 means no timeout.
Trait Implementations§
Source§impl Debug for StartCommand
impl Debug for StartCommand
Source§impl<'de> Deserialize<'de> for StartCommand
impl<'de> Deserialize<'de> for StartCommand
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StartCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StartCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StartCommand
impl Serialize for StartCommand
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for StartCommand
impl RefUnwindSafe for StartCommand
impl Send for StartCommand
impl Sync for StartCommand
impl Unpin for StartCommand
impl UnsafeUnpin for StartCommand
impl UnwindSafe for StartCommand
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