[][src]Struct opencontainers::runtime::config::Process

pub struct Process {
    pub terminal: Option<bool>,
    pub console_size: Option<ConsoleSize>,
    pub cwd: PathBuf,
    pub env: Option<Vec<String>>,
    pub args: Option<Vec<String>>,
    pub command_line: Option<String>,
    pub posix: PosixProcessExt,
    pub linux: LinuxProcessExt,
    // some fields omitted
}

Fields

terminal: Option<bool>

specifies whether a terminal is attached to the process, defaults to false. As an example, if set to true on Linux a pseudoterminal pair is allocated for the process and the pseudoterminal slave is duplicated on the process's standard streams.

console_size: Option<ConsoleSize>

specifies the console size in characters of the terminal.

Runtimes MUST ignore [console_size] if [terminal] is falseor unset.

cwd: PathBuf

the working directory that will be set for the executable.

This value MUST be an absolute path.

env: Option<Vec<String>>

array of strings with the same semantics as IEEE Std 1003.1-2008's environ.

args: Option<Vec<String>>

array of strings with similar semantics to IEEE Std 1003.1-2008 execvp's argv. This specification extends the IEEE standard in that at least one entry is REQUIRED (non-Windows), and that entry is used with the same semantics as execvp's file. This field is OPTIONAL on Windows, and commandLine is REQUIRED if this field is omitted.

command_line: Option<String>

specifies the full command line to be executed on Windows.

This is the preferred means of supplying the command line on Windows. If omitted, the runtime will fall back to escaping and concatenating fields from args before making the system call into Windows.

posix: PosixProcessExtlinux: LinuxProcessExt

Trait Implementations

impl Debug for Process[src]

impl Serialize for Process[src]

impl<'de> Deserialize<'de> for Process[src]

Auto Trait Implementations

impl Send for Process

impl Sync for Process

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err