pub struct Process {Show 15 fields
pub terminal: bool,
pub console_size: Option<ConsoleSize>,
pub cwd: String,
pub env: Vec<String>,
pub args: Vec<String>,
pub rlimits: Vec<Rlimit>,
pub apparmor_profile: Option<String>,
pub capabilities: Option<Capabilities>,
pub no_new_privileges: bool,
pub oom_score_adj: Option<i32>,
pub selinux_label: Option<String>,
pub user: Option<User>,
pub io_priority: Option<IoPriority>,
pub scheduler: Option<Scheduler>,
pub exec_cpu_affinity: Option<ExecCpuAffinity>,
}Expand description
Container process configuration.
Fields§
§terminal: boolWhether to allocate a terminal.
console_size: Option<ConsoleSize>Console size (only used if terminal is true).
cwd: StringCurrent working directory (must be absolute path). REQUIRED field.
env: Vec<String>Environment variables.
args: Vec<String>Command arguments.
rlimits: Vec<Rlimit>Resource limits (rlimits).
apparmor_profile: Option<String>AppArmor profile.
capabilities: Option<Capabilities>Linux capabilities.
no_new_privileges: boolPrevent gaining new privileges.
oom_score_adj: Option<i32>OOM score adjustment.
selinux_label: Option<String>SELinux label.
user: Option<User>User specification.
io_priority: Option<IoPriority>I/O priority.
scheduler: Option<Scheduler>Scheduler settings.
exec_cpu_affinity: Option<ExecCpuAffinity>CPU affinity for exec.
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Process
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more