[][src]Struct container_spec::ProcessBuilder

pub struct ProcessBuilder { /* fields omitted */ }

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]

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]

Capabilities are Linux capabilities that are kept for the process.

pub fn rlimits<VALUE: Into<Vec<POSIXRlimit>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

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]

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]

ApparmorProfile specifies the apparmor profile for the container.

pub fn oom_score_adj<VALUE: Into<Option<i32>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Specify an oom_score_adj for the container.

pub fn selinux_label<VALUE: Into<Option<String>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

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

pub fn build(&self) -> Result<Process, String>[src]

Builds a new Process.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for ProcessBuilder[src]

impl Default for ProcessBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.