Struct oci_spec::runtime::Process[][src]

pub struct Process {
Show 13 fields pub terminal: Option<bool>, pub console_size: Option<Box>, pub user: User, pub args: Option<Vec<String>>, pub command_line: Option<String>, pub env: Option<Vec<String>>, pub cwd: PathBuf, pub capabilities: Option<LinuxCapabilities>, pub rlimits: Option<Vec<LinuxRlimit>>, pub no_new_privileges: Option<bool>, pub apparmor_profile: Option<String>, pub oom_score_adj: Option<i32>, pub selinux_label: Option<String>,
}
Expand description

Process contains information to start a specific application inside the container.

Fields

terminal: Option<bool>

Terminal creates an interactive terminal for the container.

console_size: Option<Box>

ConsoleSize specifies the size of the console.

user: User

User specifies user information for the process.

args: Option<Vec<String>>

Args specifies the binary and arguments for the application to execute.

command_line: Option<String>

CommandLine specifies the full command line for the application to execute on Windows.

env: Option<Vec<String>>

Env populates the process environment for the process.

cwd: PathBuf

Cwd is the current working directory for the process and must be relative to the container’s root.

capabilities: Option<LinuxCapabilities>

Capabilities are Linux capabilities that are kept for the process.

rlimits: Option<Vec<LinuxRlimit>>

Rlimits specifies rlimit options to apply to the process.

no_new_privileges: Option<bool>

NoNewPrivileges controls whether additional privileges could be gained by processes in the container.

apparmor_profile: Option<String>

ApparmorProfile specifies the apparmor profile for the container.

oom_score_adj: Option<i32>

Specify an oom_score_adj for the container.

selinux_label: Option<String>

SelinuxLabel specifies the selinux context that the container process is run as.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.