pub enum DdError {
Show 15 variants
AbsolutePath {
path: PathBuf,
},
ConfigNotFound,
InvalidConfig,
Fmt(Error),
Hjson(Error),
InitNotPossible(String),
Internal(String),
InvalidPagePath {
path: String,
},
Io(Error),
Json(Error),
Read {
path: PathBuf,
error: Error,
},
Server(String),
Toml(Error),
UnsupportedFileFormat(PathBuf),
Utf8(Utf8Error),
}Variants§
AbsolutePath
ConfigNotFound
InvalidConfig
Fmt(Error)
Hjson(Error)
InitNotPossible(String)
Internal(String)
InvalidPagePath
Io(Error)
Json(Error)
Read
Server(String)
Toml(Error)
UnsupportedFileFormat(PathBuf)
Utf8(Utf8Error)
Implementations§
Trait Implementations§
Source§impl Error for DdError
impl Error for DdError
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 Freeze for DdError
impl !RefUnwindSafe for DdError
impl Send for DdError
impl Sync for DdError
impl Unpin for DdError
impl !UnwindSafe for DdError
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