pub enum PathError {
FileAccess(String, String),
FileWrite(String, String),
FilenameMissing,
InvalidPath(String, String),
InvalidTimelogPath,
InvalidConfigPath,
AlreadyExists(String),
RenameFailure(String, String),
CantCreatePath(String, String),
CantReadTimelog,
CantWriteReport,
}Expand description
Errors encountered accessing files and directories.
Variants
FileAccess(String, String)
Error accessing a file when reading. File is first string, error message is second.
FileWrite(String, String)
Error writing to a file. File is first string, error message is second.
FilenameMissing
Required filename not supplied.
InvalidPath(String, String)
Attempt to access a file in directory that is not available. Directory is first string, error message is second.
InvalidTimelogPath
Invalid path for the logfiles.
InvalidConfigPath
Invalid path for the logfiles.
AlreadyExists(String)
The filename references an existing file.
RenameFailure(String, String)
The filename references an existing file. File is first string, error message is second.
CantCreatePath(String, String)
Cannot create path. Path is first string, error message is second.
CantReadTimelog
Cannot read timelog
CantWriteReport
Cannot write to report file
Trait Implementations
sourceimpl Error for PathError
impl Error for PathError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for PathError
Auto Trait Implementations
impl RefUnwindSafe for PathError
impl Send for PathError
impl Sync for PathError
impl Unpin for PathError
impl UnwindSafe for PathError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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