#[non_exhaustive]pub enum Format {
Simple,
Prometheus,
}
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.
Simple
A metrics format that represents the metric using only a simple name. If a metric’s name depends on metadata associated with it, the formatter should ensure that the output name is unique.
Examples:
cpu/usage/user
cpu/usage/system
network/eth0/transmit/bytes
Prometheus
A metrics format that represents the metric using a name and associated metadata in the Prometheus exposition format.
Examples:
cpu_usage{mode="user"}
cpu_usage{mode="system"}
network_transmit_bytes{device="eth0"}
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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