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 copy 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<'de> Deserialize<'de> for ContainerCgroupConfig
impl<'de> Deserialize<'de> for ContainerCgroupConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContainerCgroupConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContainerCgroupConfig, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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