Struct podman_api::models::ContainerCgroupConfig [−][src]
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
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ContainerCgroupConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for ContainerCgroupConfig
impl Send for ContainerCgroupConfig
impl Sync for ContainerCgroupConfig
impl Unpin for ContainerCgroupConfig
impl UnwindSafe for ContainerCgroupConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more