pub enum Problem {
Panic,
Bug,
Error,
Warning,
Surprise,
}
Expand description
Only levels which indicate problems
To use with Result::Err
handlers,
which are needed only when something went off the optimal path.
A separate type ensures that Err
can’t end up misclassified as a benign event like Info
.
Variants
Panic
Bug
Error
Warning
Surprise
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnwindSafe for Problem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more