pub struct ExecRequest {
pub argv: Option<Vec<String>>,
pub command: Option<String>,
pub dir: Option<String>,
pub id: Option<String>,
pub stdin: Option<String>,
pub timeout_sec: Option<i32>,
}Fields§
§argv: Option<Vec<String>>Argv is the command as an argument vector, which is the honest form: it cannot be word-split by accident. Send this OR Command, not both.
command: Option<String>Command is a shell line, for a caller that holds one. It is a convenience over Argv and is the only input that ever reaches a shell.
dir: Option<String>Dir is the working directory to run in. Empty runs in the class’s own workdir — /mnt/data for exec, /work for dev.
id: Option<String>ID is the sandbox to run in, from the path.
stdin: Option<String>Stdin is fed to the command on its standard input.
timeout_sec: Option<i32>TimeoutSec bounds the run in seconds. Zero takes the default.
Implementations§
Source§impl ExecRequest
impl ExecRequest
pub fn new() -> ExecRequest
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 (const: unstable) · 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 Default for ExecRequest
impl Default for ExecRequest
Source§fn default() -> ExecRequest
fn default() -> ExecRequest
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for ExecRequest
impl PartialEq for ExecRequest
Source§impl Serialize for ExecRequest
impl Serialize for ExecRequest
impl StructuralPartialEq for ExecRequest
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