pub struct ExecRequest {
pub cmd: String,
pub args: Vec<String>,
pub env: Vec<String>,
pub cwd: Option<String>,
pub tty: bool,
pub rows: u16,
pub cols: u16,
pub rlimits: Vec<ExecRlimit>,
}Expand description
Request to execute a command in the guest.
Fields§
§cmd: StringThe command to execute (program path).
args: Vec<String>Arguments to the command.
env: Vec<String>Environment variables as key=value pairs.
cwd: Option<String>Working directory for the command.
tty: boolWhether to allocate a PTY for the command.
rows: u16Initial terminal rows (only used when tty is true).
cols: u16Initial terminal columns (only used when tty is true).
rlimits: Vec<ExecRlimit>POSIX resource limits to apply to the spawned process via setrlimit().
Trait Implementations§
Source§impl Clone for ExecRequest
impl Clone for ExecRequest
Source§fn clone(&self) -> ExecRequest
fn clone(&self) -> ExecRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 ExecRequest
impl Debug for ExecRequest
Source§impl<'de> Deserialize<'de> for ExecRequest
impl<'de> Deserialize<'de> for ExecRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecRequest
impl RefUnwindSafe for ExecRequest
impl Send for ExecRequest
impl Sync for ExecRequest
impl Unpin for ExecRequest
impl UnsafeUnpin for ExecRequest
impl UnwindSafe for ExecRequest
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