#[non_exhaustive]pub enum GeneratedShmSize {
Explicit {
amount: GeneratedString,
unit: ShmSizeUnit,
},
}Expand description
A safe explicit service shared-memory size selected for generated Compose output.
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.
Explicit
Emit one quoted amount and documented lowercase unit.
Fields
§
amount: GeneratedStringCanonical positive ASCII-integer amount without leading zeros.
§
unit: ShmSizeUnitExplicit documented lowercase unit.
Trait Implementations§
Source§impl Clone for GeneratedShmSize
impl Clone for GeneratedShmSize
Source§fn clone(&self) -> GeneratedShmSize
fn clone(&self) -> GeneratedShmSize
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 GeneratedShmSize
impl Debug for GeneratedShmSize
impl Eq for GeneratedShmSize
Source§impl PartialEq for GeneratedShmSize
impl PartialEq for GeneratedShmSize
impl StructuralPartialEq for GeneratedShmSize
Auto Trait Implementations§
impl Freeze for GeneratedShmSize
impl RefUnwindSafe for GeneratedShmSize
impl Send for GeneratedShmSize
impl Sync for GeneratedShmSize
impl Unpin for GeneratedShmSize
impl UnsafeUnpin for GeneratedShmSize
impl UnwindSafe for GeneratedShmSize
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