#[non_exhaustive]pub enum EffectiveCgroupMode {
Unspecified,
V1,
V2,
UnknownValue(UnknownValue),
}Expand description
Possible effective cgroup modes for the node.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
EFFECTIVE_CGROUP_MODE_UNSPECIFIED means the cgroup configuration for the node pool is unspecified, i.e. the node pool is a Windows node pool.
V1
CGROUP_MODE_V1 means the node pool is configured to use cgroupv1 for the cgroup configuration.
V2
CGROUP_MODE_V2 means the node pool is configured to use cgroupv2 for the cgroup configuration.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using EffectiveCgroupMode::value or EffectiveCgroupMode::name.
Implementations§
Trait Implementations§
Source§impl Clone for EffectiveCgroupMode
impl Clone for EffectiveCgroupMode
Source§fn clone(&self) -> EffectiveCgroupMode
fn clone(&self) -> EffectiveCgroupMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EffectiveCgroupMode
impl Debug for EffectiveCgroupMode
Source§impl Default for EffectiveCgroupMode
impl Default for EffectiveCgroupMode
Source§impl<'de> Deserialize<'de> for EffectiveCgroupMode
impl<'de> Deserialize<'de> for EffectiveCgroupMode
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>,
Source§impl Display for EffectiveCgroupMode
impl Display for EffectiveCgroupMode
Source§impl From<&str> for EffectiveCgroupMode
impl From<&str> for EffectiveCgroupMode
Source§impl From<i32> for EffectiveCgroupMode
impl From<i32> for EffectiveCgroupMode
Source§impl PartialEq for EffectiveCgroupMode
impl PartialEq for EffectiveCgroupMode
Source§impl Serialize for EffectiveCgroupMode
impl Serialize for EffectiveCgroupMode
impl StructuralPartialEq for EffectiveCgroupMode
Auto Trait Implementations§
impl Freeze for EffectiveCgroupMode
impl RefUnwindSafe for EffectiveCgroupMode
impl Send for EffectiveCgroupMode
impl Sync for EffectiveCgroupMode
impl Unpin for EffectiveCgroupMode
impl UnwindSafe for EffectiveCgroupMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.