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§
Source§impl 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 Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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