#[non_exhaustive]pub enum MetricsFileFormat {
Jsonl,
Prometheus,
}Expand description
File output format for metrics snapshots.
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.
Jsonl
Append one JSON object per interval.
Prometheus
Replace the file with the latest Prometheus text exposition snapshot.
Implementations§
Trait Implementations§
Source§impl Clone for MetricsFileFormat
impl Clone for MetricsFileFormat
Source§fn clone(&self) -> MetricsFileFormat
fn clone(&self) -> MetricsFileFormat
Returns a duplicate 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 MetricsFileFormat
impl Debug for MetricsFileFormat
Source§impl PartialEq for MetricsFileFormat
impl PartialEq for MetricsFileFormat
impl Copy for MetricsFileFormat
impl Eq for MetricsFileFormat
impl StructuralPartialEq for MetricsFileFormat
Auto Trait Implementations§
impl Freeze for MetricsFileFormat
impl RefUnwindSafe for MetricsFileFormat
impl Send for MetricsFileFormat
impl Sync for MetricsFileFormat
impl Unpin for MetricsFileFormat
impl UnsafeUnpin for MetricsFileFormat
impl UnwindSafe for MetricsFileFormat
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