pub enum Error {
Write {
path: PathBuf,
source: Error,
},
Parent {
path: PathBuf,
},
NoFileName {
path: PathBuf,
},
CreateDirAll {
path: PathBuf,
source: Error,
},
UnknownIndex {
index: Index,
},
Custom(Box<dyn Error + Sync + Send>),
}Expand description
Internal Error
Variants§
Write
Failed to write file to the given path
Parent
Failed to create parent directory of the given path
NoFileName
Failed to get filename of the given path
CreateDirAll
Failed to create directories leading to the given path
UnknownIndex
Custom(Box<dyn Error + Sync + Send>)
Implementations§
Source§impl Error
impl Error
pub fn unknown_index(index: Index) -> Self
pub fn write(path: impl Into<PathBuf>, source: Error) -> Self
pub fn parent(path: impl Into<PathBuf>) -> Self
pub fn filename(path: impl Into<PathBuf>) -> Self
pub fn dir_all(path: impl Into<PathBuf>, source: Error) -> Self
pub fn custom(error: impl Error + Send + Sync + 'static) -> Self
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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