Enum relay_metrics::InformationUnit
source · pub enum InformationUnit {
Show 14 variants
Bit,
Byte,
KiloByte,
KibiByte,
MegaByte,
MebiByte,
GigaByte,
GibiByte,
TeraByte,
TebiByte,
PetaByte,
PebiByte,
ExaByte,
ExbiByte,
}
Expand description
Size of information derived from bytes, used in MetricUnit::Information
.
Defaults to byte
. See also Units of
information.
Variants§
Bit
Bit ("bit"
), corresponding to 1/8 of a byte.
Note that there are computer systems with a different number of bits per byte.
Byte
Byte ("byte"
).
KiloByte
Kilobyte ("kilobyte"
), 10^3 bytes.
KibiByte
Kibibyte ("kibibyte"
), 2^10 bytes.
MegaByte
Megabyte ("megabyte"
), 10^6 bytes.
MebiByte
Mebibyte ("mebibyte"
), 2^20 bytes.
GigaByte
Gigabyte ("gigabyte"
), 10^9 bytes.
GibiByte
Gibibyte ("gibibyte"
), 2^30 bytes.
TeraByte
Terabyte ("terabyte"
), 10^12 bytes.
TebiByte
Tebibyte ("tebibyte"
), 2^40 bytes.
PetaByte
Petabyte ("petabyte"
), 10^15 bytes.
PebiByte
Pebibyte ("pebibyte"
), 2^50 bytes.
ExaByte
Exabyte ("exabyte"
), 10^18 bytes.
ExbiByte
Exbibyte ("exbibyte"
), 2^60 bytes.
Implementations§
Trait Implementations§
source§impl Clone for InformationUnit
impl Clone for InformationUnit
source§fn clone(&self) -> InformationUnit
fn clone(&self) -> InformationUnit
Returns a copy of the value. Read more
1.0.0 · 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 InformationUnit
impl Debug for InformationUnit
source§impl Default for InformationUnit
impl Default for InformationUnit
source§fn default() -> InformationUnit
fn default() -> InformationUnit
Returns the “default value” for a type. Read more
source§impl Display for InformationUnit
impl Display for InformationUnit
source§impl Hash for InformationUnit
impl Hash for InformationUnit
source§impl PartialEq for InformationUnit
impl PartialEq for InformationUnit
impl Copy for InformationUnit
impl Eq for InformationUnit
impl StructuralPartialEq for InformationUnit
Auto Trait Implementations§
impl Freeze for InformationUnit
impl RefUnwindSafe for InformationUnit
impl Send for InformationUnit
impl Sync for InformationUnit
impl Unpin for InformationUnit
impl UnwindSafe for InformationUnit
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.