pub struct ProcessBuilder { /* private fields */ }
Expand description
Builder for Process
.
Implementations§
Source§impl ProcessBuilder
impl ProcessBuilder
Sourcepub fn terminal<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
pub fn terminal<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
Terminal creates an interactive terminal for the container.
Sourcepub fn console_size<VALUE: Into<Option<ConsoleSizeBox>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn console_size<VALUE: Into<Option<ConsoleSizeBox>>>( &mut self, value: VALUE, ) -> &mut Self
ConsoleSize specifies the size of the console.
Sourcepub fn user<VALUE: Into<User>>(&mut self, value: VALUE) -> &mut Self
pub fn user<VALUE: Into<User>>(&mut self, value: VALUE) -> &mut Self
User specifies user information for the process.
Sourcepub fn args<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn args<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
Args specifies the binary and arguments for the application to execute.
Sourcepub fn env<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn env<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
Env populates the process environment for the process.
Sourcepub fn cwd<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn cwd<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Cwd is the current working directory for the process and must be relative to the container’s root.
Sourcepub fn capabilities<VALUE: Into<Option<LinuxCapabilities>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn capabilities<VALUE: Into<Option<LinuxCapabilities>>>( &mut self, value: VALUE, ) -> &mut Self
Capabilities are Linux capabilities that are kept for the process.
Sourcepub fn rlimits<VALUE: Into<Vec<POSIXRlimit>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn rlimits<VALUE: Into<Vec<POSIXRlimit>>>( &mut self, value: VALUE, ) -> &mut Self
Rlimits specifies rlimit options to apply to the process.
Sourcepub fn no_new_privileges<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn no_new_privileges<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
Sourcepub fn app_armor_profile<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn app_armor_profile<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
ApparmorProfile specifies the apparmor profile for the container.
Sourcepub fn oom_score_adj<VALUE: Into<Option<i32>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn oom_score_adj<VALUE: Into<Option<i32>>>( &mut self, value: VALUE, ) -> &mut Self
Specify an oom_score_adj for the container.
Sourcepub fn selinux_label<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn selinux_label<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
SelinuxLabel specifies the selinux context that the container process is run as.
Trait Implementations§
Source§impl Clone for ProcessBuilder
impl Clone for ProcessBuilder
Source§fn clone(&self) -> ProcessBuilder
fn clone(&self) -> ProcessBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more