Enum easy_repl::command::CriticalError [−][src]
pub enum CriticalError { Critical(Error), }
Expand description
Special error wrapper used to indicate that a critical error occured.
Handler
can return CriticalError
to indicate that this error
should not be handled by the REPL (which just prints error message
and continues for all other errors).
This is most conveniently used via the Critical
extension trait.
Variants
Critical(Error)
Expand description
The contained error is critical and should be returned back from REPL.
Trait Implementations
impl Debug for CriticalError
[src]
impl Debug for CriticalError
[src]impl Display for CriticalError
[src]
impl Display for CriticalError
[src]impl Error for CriticalError
[src]
impl Error for CriticalError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for CriticalError
impl Send for CriticalError
impl Sync for CriticalError
impl Unpin for CriticalError
impl !UnwindSafe for CriticalError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T