pub struct Process { /* private fields */ }
Expand description
Process contains information to start a specific application inside the container.
Implementations§
Source§impl Process
impl Process
Sourcepub fn terminal(&self) -> Option<bool>
pub fn terminal(&self) -> Option<bool>
Terminal creates an interactive terminal for the container.
Sourcepub fn console_size(&self) -> Option<Box>
pub fn console_size(&self) -> Option<Box>
ConsoleSize specifies the size of the console.
Sourcepub fn no_new_privileges(&self) -> Option<bool>
pub fn no_new_privileges(&self) -> Option<bool>
NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
Sourcepub fn oom_score_adj(&self) -> Option<i32>
pub fn oom_score_adj(&self) -> Option<i32>
Specify an oom_score_adj for the container.
Source§impl Process
impl Process
Sourcepub fn args(&self) -> &Option<Vec<String>>
pub fn args(&self) -> &Option<Vec<String>>
Args specifies the binary and arguments for the application to execute.
Sourcepub fn command_line(&self) -> &Option<String>
pub fn command_line(&self) -> &Option<String>
CommandLine specifies the full command line for the application to execute on Windows.
Sourcepub fn env(&self) -> &Option<Vec<String>>
pub fn env(&self) -> &Option<Vec<String>>
Env populates the process environment for the process.
Sourcepub fn cwd(&self) -> &PathBuf
pub fn cwd(&self) -> &PathBuf
Cwd is the current working directory for the process and must be relative to the container’s root.
Sourcepub fn capabilities(&self) -> &Option<LinuxCapabilities>
pub fn capabilities(&self) -> &Option<LinuxCapabilities>
Capabilities are Linux capabilities that are kept for the process.
Sourcepub fn rlimits(&self) -> &Option<Vec<PosixRlimit>>
pub fn rlimits(&self) -> &Option<Vec<PosixRlimit>>
Rlimits specifies rlimit options to apply to the process.
Sourcepub fn apparmor_profile(&self) -> &Option<String>
pub fn apparmor_profile(&self) -> &Option<String>
ApparmorProfile specifies the apparmor profile for the container.
Sourcepub fn selinux_label(&self) -> &Option<String>
pub fn selinux_label(&self) -> &Option<String>
SelinuxLabel specifies the selinux context that the container process is run as.
Sourcepub fn io_priority(&self) -> &Option<LinuxIOPriority>
pub fn io_priority(&self) -> &Option<LinuxIOPriority>
IOPriority contains the I/O priority settings for the cgroup.
Sourcepub fn scheduler(&self) -> &Option<Scheduler>
pub fn scheduler(&self) -> &Option<Scheduler>
Scheduler specifies the scheduling attributes for a process
Sourcepub fn exec_cpu_affinity(&self) -> &Option<ExecCPUAffinity>
pub fn exec_cpu_affinity(&self) -> &Option<ExecCPUAffinity>
ExecCPUAffinity specifies the cpu affinity for a process
Source§impl Process
impl Process
Sourcepub fn command_line_mut(&mut self) -> &mut Option<String>
pub fn command_line_mut(&mut self) -> &mut Option<String>
CommandLine specifies the full command line for the application to execute on Windows.
Source§impl Process
impl Process
Sourcepub fn set_terminal(&mut self, val: Option<bool>) -> &mut Self
pub fn set_terminal(&mut self, val: Option<bool>) -> &mut Self
Terminal creates an interactive terminal for the container.
Sourcepub fn set_console_size(&mut self, val: Option<Box>) -> &mut Self
pub fn set_console_size(&mut self, val: Option<Box>) -> &mut Self
ConsoleSize specifies the size of the console.
Sourcepub fn set_user(&mut self, val: User) -> &mut Self
pub fn set_user(&mut self, val: User) -> &mut Self
User specifies user information for the process.
Sourcepub fn set_args(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_args(&mut self, val: Option<Vec<String>>) -> &mut Self
Args specifies the binary and arguments for the application to execute.
Sourcepub fn set_command_line(&mut self, val: Option<String>) -> &mut Self
pub fn set_command_line(&mut self, val: Option<String>) -> &mut Self
CommandLine specifies the full command line for the application to execute on Windows.
Sourcepub fn set_env(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_env(&mut self, val: Option<Vec<String>>) -> &mut Self
Env populates the process environment for the process.
Sourcepub fn set_cwd(&mut self, val: PathBuf) -> &mut Self
pub fn set_cwd(&mut self, val: PathBuf) -> &mut Self
Cwd is the current working directory for the process and must be relative to the container’s root.
Sourcepub fn set_capabilities(&mut self, val: Option<LinuxCapabilities>) -> &mut Self
pub fn set_capabilities(&mut self, val: Option<LinuxCapabilities>) -> &mut Self
Capabilities are Linux capabilities that are kept for the process.
Sourcepub fn set_rlimits(&mut self, val: Option<Vec<PosixRlimit>>) -> &mut Self
pub fn set_rlimits(&mut self, val: Option<Vec<PosixRlimit>>) -> &mut Self
Rlimits specifies rlimit options to apply to the process.
Sourcepub fn set_no_new_privileges(&mut self, val: Option<bool>) -> &mut Self
pub fn set_no_new_privileges(&mut self, val: Option<bool>) -> &mut Self
NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
Sourcepub fn set_apparmor_profile(&mut self, val: Option<String>) -> &mut Self
pub fn set_apparmor_profile(&mut self, val: Option<String>) -> &mut Self
ApparmorProfile specifies the apparmor profile for the container.
Sourcepub fn set_oom_score_adj(&mut self, val: Option<i32>) -> &mut Self
pub fn set_oom_score_adj(&mut self, val: Option<i32>) -> &mut Self
Specify an oom_score_adj for the container.
Sourcepub fn set_selinux_label(&mut self, val: Option<String>) -> &mut Self
pub fn set_selinux_label(&mut self, val: Option<String>) -> &mut Self
SelinuxLabel specifies the selinux context that the container process is run as.
Sourcepub fn set_io_priority(&mut self, val: Option<LinuxIOPriority>) -> &mut Self
pub fn set_io_priority(&mut self, val: Option<LinuxIOPriority>) -> &mut Self
IOPriority contains the I/O priority settings for the cgroup.
Sourcepub fn set_scheduler(&mut self, val: Option<Scheduler>) -> &mut Self
pub fn set_scheduler(&mut self, val: Option<Scheduler>) -> &mut Self
Scheduler specifies the scheduling attributes for a process
Sourcepub fn set_exec_cpu_affinity(
&mut self,
val: Option<ExecCPUAffinity>,
) -> &mut Self
pub fn set_exec_cpu_affinity( &mut self, val: Option<ExecCPUAffinity>, ) -> &mut Self
ExecCPUAffinity specifies the cpu affinity for a process