pub struct ContainerCgroupConfig {
pub cgroup_parent: Option<String>,
pub cgroupns: Option<Namespace>,
pub cgroups_mode: Option<String>,
}
Expand description
ContainerCgroupConfig contains configuration information about a container’s cgroups.
Fields§
§cgroup_parent: Option<String>
CgroupParent is the container’s Cgroup parent. If not set, the default for the current cgroup driver will be used. Optional.
cgroupns: Option<Namespace>
§cgroups_mode: Option<String>
CgroupsMode sets a policy for how cgroups will be created in the container, including the ability to disable creation entirely.
Trait Implementations§
Source§impl Clone for ContainerCgroupConfig
impl Clone for ContainerCgroupConfig
Source§fn clone(&self) -> ContainerCgroupConfig
fn clone(&self) -> ContainerCgroupConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContainerCgroupConfig
impl Debug for ContainerCgroupConfig
Source§impl<'de> Deserialize<'de> for ContainerCgroupConfig
impl<'de> Deserialize<'de> for ContainerCgroupConfig
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
Source§impl PartialEq for ContainerCgroupConfig
impl PartialEq for ContainerCgroupConfig
Source§impl Serialize for ContainerCgroupConfig
impl Serialize for ContainerCgroupConfig
impl StructuralPartialEq for ContainerCgroupConfig
Auto Trait Implementations§
impl Freeze for ContainerCgroupConfig
impl RefUnwindSafe for ContainerCgroupConfig
impl Send for ContainerCgroupConfig
impl Sync for ContainerCgroupConfig
impl Unpin for ContainerCgroupConfig
impl UnwindSafe for ContainerCgroupConfig
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