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
Trait Implementations§
source§impl<'de> Deserialize<'de> for Process
impl<'de> Deserialize<'de> for Process
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>,
source§impl PartialEq for Process
impl PartialEq for Process
impl Eq for Process
impl StructuralPartialEq for Process
Auto Trait Implementations§
impl Freeze for Process
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnwindSafe for Process
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)