pub enum ErrorKind {
External(Error),
Sql(Error),
Io(Error),
Melib(Error),
SerdeJson(Error),
Template(Error),
Msg(String),
PostRejected(String),
NotFound(&'static str),
InvalidRequest(String),
Information(String),
Bug(String),
// some variants omitted
}
Expand description
The kind of an error.
Variants§
External(Error)
Error returned from an external user initiated operation such as deserialization or I/O.
Sql(Error)
Error returned from sqlite3.
Io(Error)
Error returned from internal I/O operations.
Melib(Error)
Error returned from e-mail protocol operations from melib
crate.
SerdeJson(Error)
Error from deserializing JSON values.
Template(Error)
Error returned from minijinja template engine.
Msg(String)
A convenient variant for String.
PostRejected(String)
Post rejected.
NotFound(&'static str)
An entry was not found in the database.
InvalidRequest(String)
A request was invalid.
Information(String)
An error happened and it was handled internally.
Bug(String)
An error that shouldn’t happen and should be reported.
Implementations§
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§
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