pub enum CheckResult {
Ok,
Info,
Warning,
Error,
Fatal,
}
Expand description
Result of a check (the level of severity)
Variants§
Ok
This notes a value that is within expected parameters
Info
Information, not a problem in itself (but might be interesting for troubleshooting if some optional dependency is missing for example).
Warning
Warning, something that might be a problem
Error
Error, definitely a problem
Fatal
Fatal error, the check itself couldn’t complete (returned an Err
)
Trait Implementations§
Source§impl Clone for CheckResult
impl Clone for CheckResult
Source§fn clone(&self) -> CheckResult
fn clone(&self) -> CheckResult
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 CheckResult
impl Debug for CheckResult
Source§impl Display for CheckResult
Coloured formatting of check result
impl Display for CheckResult
Coloured formatting of check result
Source§impl<'_derivative_strum> From<&'_derivative_strum CheckResult> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum CheckResult> for &'static str
Source§fn from(x: &'_derivative_strum CheckResult) -> &'static str
fn from(x: &'_derivative_strum CheckResult) -> &'static str
Converts to this type from the input type.
Source§impl From<CheckResult> for &'static str
impl From<CheckResult> for &'static str
Source§fn from(x: CheckResult) -> &'static str
fn from(x: CheckResult) -> &'static str
Converts to this type from the input type.
Source§impl Ord for CheckResult
impl Ord for CheckResult
Source§fn cmp(&self, other: &CheckResult) -> Ordering
fn cmp(&self, other: &CheckResult) -> 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 CheckResult
impl PartialEq for CheckResult
Source§impl PartialOrd for CheckResult
impl PartialOrd for CheckResult
impl Copy for CheckResult
impl Eq for CheckResult
impl StructuralPartialEq for CheckResult
Auto Trait Implementations§
impl Freeze for CheckResult
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnwindSafe for CheckResult
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