Enum mackerel_plugin::Unit [] [src]

pub enum Unit {
    Float,
    Integer,
    Percentage,
    Bytes,
    BytesPerSecond,
    IOPS,
}

Metric units

Variants

Trait Implementations

impl PartialEq for Unit
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Clone for Unit
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Unit
[src]

[src]

Formats the value using the given formatter.

impl Display for Unit
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for Unit
[src]

[src]

Performs the conversion.