Skip to main content

quantrs2_core/realtime_monitoring/
alertlevel_traits.rs

1//! # AlertLevel - Trait Implementations
2//!
3//! This module contains trait implementations for `AlertLevel`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::AlertLevel;
12use std::fmt;
13
14impl fmt::Display for AlertLevel {
15    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
16        match self {
17            Self::Info => write!(f, "INFO"),
18            Self::Warning => write!(f, "WARNING"),
19            Self::Critical => write!(f, "CRITICAL"),
20            Self::Emergency => write!(f, "EMERGENCY"),
21        }
22    }
23}