Enum diagnostics_data::LegacySeverity
source · #[repr(i8)]pub enum LegacySeverity {
Trace,
Debug,
Verbose(i8),
Info,
Warn,
Error,
Fatal,
}
Expand description
The legacy severity representation.
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 for LegacySeverity
impl PartialEq 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 for LegacySeverity
impl PartialOrd 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.
impl Copy for LegacySeverity
impl Eq for LegacySeverity
impl StructuralEq for LegacySeverity
impl StructuralPartialEq for LegacySeverity
Auto Trait Implementations§
impl RefUnwindSafe for LegacySeverity
impl Send for LegacySeverity
impl Sync for LegacySeverity
impl Unpin for LegacySeverity
impl UnwindSafe for LegacySeverity
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