pub enum CommandLine {
Argv(Vec<String>),
Script(String),
}Expand description
What a command runs: its argv, as it is, its program found in the
sandbox’s PATH; or a script, which the sandbox’s shell runs,
/bin/bash -lc if its image has bash, else /bin/sh -c (dvm chooses
once, as the sandbox starts). In JSON, an array of strings, or a string.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for CommandLine
impl Clone for CommandLine
Source§impl Debug for CommandLine
impl Debug for CommandLine
Source§impl<'de> Deserialize<'de> for CommandLine
impl<'de> Deserialize<'de> for CommandLine
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
impl Eq for CommandLine
Source§impl From<&[&str]> for CommandLine
impl From<&[&str]> for CommandLine
Source§impl From<&str> for CommandLine
A script, which the sandbox’s shell runs.
impl From<&str> for CommandLine
A script, which the sandbox’s shell runs.
Source§impl From<String> for CommandLine
impl From<String> for CommandLine
Source§impl PartialEq for CommandLine
impl PartialEq for CommandLine
Source§impl Serialize for CommandLine
impl Serialize for CommandLine
impl StructuralPartialEq for CommandLine
Auto Trait Implementations§
impl Forget for CommandLine
impl Freeze for CommandLine
impl RefUnwindSafe for CommandLine
impl Send for CommandLine
impl Sync for CommandLine
impl Unpin for CommandLine
impl UnsafeUnpin for CommandLine
impl UnwindSafe for CommandLine
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