[−][src]Struct container_spec::ProcessBuilder
Builder for Process
.
Methods
impl ProcessBuilder
[src]
pub fn terminal<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
[src]
Terminal creates an interactive terminal for the container.
pub fn console_size<VALUE: Into<Option<ConsoleSizeBox>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
ConsoleSize specifies the size of the console.
pub fn user<VALUE: Into<User>>(&mut self, value: VALUE) -> &mut Self
[src]
User specifies user information for the process.
pub fn args<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
Args specifies the binary and arguments for the application to execute.
pub fn env<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
Env populates the process environment for the process.
pub fn cwd<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
Cwd is the current working directory for the process and must be relative to the container's root.
pub fn capabilities<VALUE: Into<Option<LinuxCapabilities>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Capabilities are Linux capabilities that are kept for the process.
pub fn rlimits<VALUE: Into<Vec<POSIXRlimit>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Rlimits specifies rlimit options to apply to the process.
pub fn no_new_privileges<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
pub fn app_armor_profile<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
ApparmorProfile specifies the apparmor profile for the container.
pub fn oom_score_adj<VALUE: Into<Option<i32>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Specify an oom_score_adj for the container.
pub fn selinux_label<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
SelinuxLabel specifies the selinux context that the container process is run as.
pub fn build(&self) -> Result<Process, String>
[src]
Trait Implementations
impl Clone for ProcessBuilder
[src]
fn clone(&self) -> ProcessBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ProcessBuilder
[src]
fn default() -> ProcessBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ProcessBuilder
impl Send for ProcessBuilder
impl Sync for ProcessBuilder
impl Unpin for ProcessBuilder
impl UnwindSafe for ProcessBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,