Enum diagnostics_data::LegacySeverity
source · #[repr(i8)]
pub enum LegacySeverity {
Trace,
Debug,
Verbose(i8),
Info,
Warn,
Error,
Fatal,
}
Variants§
Implementations§
source§impl LegacySeverity
impl LegacySeverity
sourcepub fn for_structured(self) -> (Severity, Option<i8>)
pub fn for_structured(self) -> (Severity, Option<i8>)
Splits this legacy value into a severity and an optional verbosity.
Trait Implementations§
source§impl Clone for LegacySeverity
impl Clone for LegacySeverity
source§fn clone(&self) -> LegacySeverity
fn clone(&self) -> LegacySeverity
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 LegacySeverity
impl Debug for LegacySeverity
source§impl From<LegacySeverity> for c_int
impl From<LegacySeverity> for c_int
source§fn from(severity: LegacySeverity) -> c_int
fn from(severity: LegacySeverity) -> c_int
Converts to this type from the input type.
source§impl From<Severity> for LegacySeverity
impl From<Severity> for LegacySeverity
source§impl From<Severity> for LegacySeverity
impl From<Severity> for LegacySeverity
source§impl Ord for LegacySeverity
impl Ord for LegacySeverity
source§fn cmp(&self, other: &LegacySeverity) -> Ordering
fn cmp(&self, other: &LegacySeverity) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<LegacySeverity> for LegacySeverity
impl PartialEq<LegacySeverity> for LegacySeverity
source§fn eq(&self, other: &LegacySeverity) -> bool
fn eq(&self, other: &LegacySeverity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LegacySeverity> for LegacySeverity
impl PartialOrd<LegacySeverity> for LegacySeverity
source§fn partial_cmp(&self, other: &LegacySeverity) -> Option<Ordering>
fn partial_cmp(&self, other: &LegacySeverity) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for LegacySeverity
impl TryFrom<i32> for LegacySeverity
§type Error = SeverityError
type Error = SeverityError
The type returned in the event of a conversion error.
source§fn try_from(raw: c_int) -> Result<LegacySeverity, SeverityError>
fn try_from(raw: c_int) -> Result<LegacySeverity, SeverityError>
Performs the conversion.