#[non_exhaustive]pub enum ShmSizeKind {
Documented {
amount_raw: String,
unit: ShmSizeUnit,
},
Zero {
amount_raw: String,
unit: Option<ShmSizeUnit>,
},
Expression,
ProviderDependentNumber,
ProviderDependentString,
}Expand description
The raw-preserving semantic family of a service shared-memory size.
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.
Documented
A string ending in one documented lowercase suffix.
Fields
§
unit: ShmSizeUnitExact documented suffix family.
Zero
An all-zero integral spelling whose Compose semantics are unspecified.
Fields
§
unit: Option<ShmSizeUnit>Documented suffix when one was present.
Expression
A dollar-bearing string deferred to Compose interpolation.
ProviderDependentNumber
A schema-accepted YAML number outside the documented explicit-suffix family.
ProviderDependentString
A schema-accepted YAML string outside the documented lowercase-suffix family.
Trait Implementations§
Source§impl Clone for ShmSizeKind
impl Clone for ShmSizeKind
Source§fn clone(&self) -> ShmSizeKind
fn clone(&self) -> ShmSizeKind
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 ShmSizeKind
impl Debug for ShmSizeKind
impl Eq for ShmSizeKind
Source§impl PartialEq for ShmSizeKind
impl PartialEq for ShmSizeKind
impl StructuralPartialEq for ShmSizeKind
Auto Trait Implementations§
impl Freeze for ShmSizeKind
impl RefUnwindSafe for ShmSizeKind
impl Send for ShmSizeKind
impl Sync for ShmSizeKind
impl Unpin for ShmSizeKind
impl UnsafeUnpin for ShmSizeKind
impl UnwindSafe for ShmSizeKind
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