#[non_exhaustive]pub enum MemLimitUnit {
B,
K,
Kb,
M,
Mb,
G,
Gb,
}Expand description
One lowercase byte-unit suffix documented for service mem_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.
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 MemLimitUnit
impl Clone for MemLimitUnit
Source§fn clone(&self) -> MemLimitUnit
fn clone(&self) -> MemLimitUnit
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 MemLimitUnit
Source§impl Debug for MemLimitUnit
impl Debug for MemLimitUnit
impl Eq for MemLimitUnit
Source§impl Hash for MemLimitUnit
impl Hash for MemLimitUnit
Source§impl PartialEq for MemLimitUnit
impl PartialEq for MemLimitUnit
impl StructuralPartialEq for MemLimitUnit
Auto Trait Implementations§
impl Freeze for MemLimitUnit
impl RefUnwindSafe for MemLimitUnit
impl Send for MemLimitUnit
impl Sync for MemLimitUnit
impl Unpin for MemLimitUnit
impl UnsafeUnpin for MemLimitUnit
impl UnwindSafe for MemLimitUnit
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