#[non_exhaustive]pub enum MemswapLimitKind {
Unlimited,
Zero {
amount_raw: String,
unit: Option<MemLimitUnit>,
},
Positive {
amount_raw: String,
unit: Option<MemLimitUnit>,
},
Expression,
Other(String),
}Expand description
The raw-preserving semantic family of a service memory-plus-swap limit.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unlimited
Compose’s explicit unlimited -1 spelling.
Zero
An all-zero quantity, kept distinct from omitted and unlimited values.
Fields
§
unit: Option<MemLimitUnit>The documented suffix when present.
Positive
A positive decimal quantity with an optional documented unit.
Fields
§
unit: Option<MemLimitUnit>The documented suffix when present.
Expression
A dollar-bearing string deferred to Compose interpolation.
Other(String)
A malformed or provider-specific spelling retained for inspection.
Trait Implementations§
Source§impl Clone for MemswapLimitKind
impl Clone for MemswapLimitKind
Source§fn clone(&self) -> MemswapLimitKind
fn clone(&self) -> MemswapLimitKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MemswapLimitKind
impl Debug for MemswapLimitKind
impl Eq for MemswapLimitKind
Source§impl PartialEq for MemswapLimitKind
impl PartialEq for MemswapLimitKind
impl StructuralPartialEq for MemswapLimitKind
Auto Trait Implementations§
impl Freeze for MemswapLimitKind
impl RefUnwindSafe for MemswapLimitKind
impl Send for MemswapLimitKind
impl Sync for MemswapLimitKind
impl Unpin for MemswapLimitKind
impl UnsafeUnpin for MemswapLimitKind
impl UnwindSafe for MemswapLimitKind
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