pub enum Error<H> {
SpecReader(Error<Pos>),
MdWriter(Error),
Handler(H),
Failure {
key: String,
example: String,
expected: String,
actual: String,
},
IO(Error),
Unknown(String),
}
Expand description
Errors that might be returned by a process
call.
Variants§
Trait Implementations§
Source§impl<H> Error for Error<H>
impl<H> Error for Error<H>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<H> Freeze for Error<H>where
H: Freeze,
impl<H> !RefUnwindSafe for Error<H>
impl<H> Send for Error<H>where
H: Send,
impl<H> Sync for Error<H>where
H: Sync,
impl<H> Unpin for Error<H>where
H: Unpin,
impl<H> !UnwindSafe for Error<H>
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