Enum DiagnosticLevel
pub enum DiagnosticLevel {
Info,
Warning,
Error,
Fatal,
}Expand description
The severity level of a diagnostic.
Variants§
Info
Informational diagnostic.
Warning
Warning diagnostic.
Error
Error diagnostic.
Fatal
Fatal diagnostic.
Implementations§
Trait Implementations§
§impl Clone for DiagnosticLevel
impl Clone for DiagnosticLevel
§fn clone(&self) -> DiagnosticLevel
fn clone(&self) -> DiagnosticLevel
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 more§impl Debug for DiagnosticLevel
impl Debug for DiagnosticLevel
§impl Display for DiagnosticLevel
impl Display for DiagnosticLevel
§impl FromStr for DiagnosticLevel
impl FromStr for DiagnosticLevel
§type Err = DiagnosticLevelParseError
type Err = DiagnosticLevelParseError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<DiagnosticLevel, <DiagnosticLevel as FromStr>::Err>
fn from_str( value: &str, ) -> Result<DiagnosticLevel, <DiagnosticLevel as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for DiagnosticLevel
impl Hash for DiagnosticLevel
§impl Ord for DiagnosticLevel
impl Ord for DiagnosticLevel
§impl PartialEq for DiagnosticLevel
impl PartialEq for DiagnosticLevel
§impl PartialOrd for DiagnosticLevel
impl PartialOrd for DiagnosticLevel
impl Copy for DiagnosticLevel
impl Eq for DiagnosticLevel
impl StructuralPartialEq for DiagnosticLevel
Auto Trait Implementations§
impl Freeze for DiagnosticLevel
impl RefUnwindSafe for DiagnosticLevel
impl Send for DiagnosticLevel
impl Sync for DiagnosticLevel
impl Unpin for DiagnosticLevel
impl UnsafeUnpin for DiagnosticLevel
impl UnwindSafe for DiagnosticLevel
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