#[non_exhaustive]pub enum ShmSizeUnit {
B,
K,
Kb,
M,
Mb,
G,
Gb,
}Expand description
One lowercase byte-unit suffix documented for service shm_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.
B
Bytes (b).
K
Kilobytes (k).
Kb
Kilobytes (kb).
M
Megabytes (m).
Mb
Megabytes (mb).
G
Gigabytes (g).
Gb
Gigabytes (gb).
Implementations§
Trait Implementations§
Source§impl Clone for ShmSizeUnit
impl Clone for ShmSizeUnit
Source§fn clone(&self) -> ShmSizeUnit
fn clone(&self) -> ShmSizeUnit
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 moreimpl Copy for ShmSizeUnit
Source§impl Debug for ShmSizeUnit
impl Debug for ShmSizeUnit
impl Eq for ShmSizeUnit
Source§impl Hash for ShmSizeUnit
impl Hash for ShmSizeUnit
Source§impl PartialEq for ShmSizeUnit
impl PartialEq for ShmSizeUnit
impl StructuralPartialEq for ShmSizeUnit
Auto Trait Implementations§
impl Freeze for ShmSizeUnit
impl RefUnwindSafe for ShmSizeUnit
impl Send for ShmSizeUnit
impl Sync for ShmSizeUnit
impl Unpin for ShmSizeUnit
impl UnsafeUnpin for ShmSizeUnit
impl UnwindSafe for ShmSizeUnit
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