pub enum ErrorKind {
Io(Error),
Msg(String),
Unknown,
Timeout,
Unsupported,
IoError(String),
SolverError(String),
ParseError(String, String),
// some variants omitted
}
Expand description
The kind of an error.
Variants
Io(Error)
IO error.
Msg(String)
A convenient variant for String.
Unknown
The solver reported unknown
.
Timeout
The solver reported timeout
.
Unsupported
The solver reported unsupported
.
IoError(String)
IO error.
SolverError(String)
The solver reported an error.
ParseError(String, String)
Parse error, contains the s-expression on which the error happened
Implementations
sourceimpl ErrorKind
impl ErrorKind
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
sourceimpl ErrorKind
impl ErrorKind
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
True if the error is Unknown
.
sourcepub fn is_timeout(&self) -> bool
pub fn is_timeout(&self) -> bool
True if the error is Timeout
.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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