pub struct ContainerStateParams {
pub id: String,
pub name: String,
pub pid: u32,
pub command: Vec<String>,
pub memory_limit: Option<u64>,
pub cpu_limit: Option<u64>,
pub using_gvisor: bool,
pub rootless: bool,
pub cgroup_path: Option<String>,
}Expand description
Parameters for creating a new ContainerState.
Fields§
§id: String§name: String§pid: u32§command: Vec<String>§memory_limit: Option<u64>§cpu_limit: Option<u64>§using_gvisor: bool§rootless: bool§cgroup_path: Option<String>Auto Trait Implementations§
impl Freeze for ContainerStateParams
impl RefUnwindSafe for ContainerStateParams
impl Send for ContainerStateParams
impl Sync for ContainerStateParams
impl Unpin for ContainerStateParams
impl UnsafeUnpin for ContainerStateParams
impl UnwindSafe for ContainerStateParams
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