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§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnwindSafe for Problem
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