pub struct ContainerCgroupConfig {
pub cgroup_parent: Option<String>,
pub cgroupns: Option<Box<Namespace>>,
pub cgroups_mode: Option<String>,
}
Expand description
ContainerCgroupConfig : 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<Box<Namespace>>
§cgroups_mode: Option<String>
CgroupsMode sets a policy for how cgroups will be created for the container, including the ability to disable creation entirely. Optional.
Implementations§
Source§impl ContainerCgroupConfig
impl ContainerCgroupConfig
Sourcepub fn new() -> ContainerCgroupConfig
pub fn new() -> ContainerCgroupConfig
ContainerCgroupConfig contains configuration information about a container’s cgroups.
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContainerCgroupConfig
impl Debug for ContainerCgroupConfig
Source§impl Default for ContainerCgroupConfig
impl Default for ContainerCgroupConfig
Source§fn default() -> ContainerCgroupConfig
fn default() -> ContainerCgroupConfig
Returns the “default value” for a type. Read more
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