pub struct ExecRequest {
pub cmd: Vec<String>,
pub timeout_ns: u64,
pub env: Vec<String>,
pub working_dir: Option<String>,
pub stdin: Option<Vec<u8>>,
pub user: Option<String>,
pub streaming: bool,
}Expand description
Request to execute a command in the guest.
Fields§
§cmd: Vec<String>Command and arguments (e.g., [“ls”, “-la”]).
timeout_ns: u64Timeout in nanoseconds. 0 means use the default.
env: Vec<String>Additional environment variables (KEY=VALUE pairs).
working_dir: Option<String>Working directory for the command.
stdin: Option<Vec<u8>>Optional stdin data to pipe to the command.
user: Option<String>User to run the command as (e.g., “root”, “1000”, “1000:1000”).
streaming: boolEnable streaming mode (receive output chunks as they arrive).
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