Enum pathio::PathioError
source · pub enum PathioError {
FileConflict,
DuplicateName(String),
NameInUse(String),
NoDirectory(String),
NoFile(String),
}Variants§
FileConflict
Error that happens when merging directories. The directory being merged contained a file. Drop the file before merging.
DuplicateName(String)
Error that happens when merging directories. Two directories/files have the same name.
NameInUse(String)
Error that happens when attempted to create a directory/file with a name that is already in use.
NoDirectory(String)
Error that happens when you try to locate a directory that doesn’t exist.
NoFile(String)
Error that happens when you try to locate a file that doesn’t exist.
Trait Implementations§
source§impl Debug for PathioError
impl Debug for PathioError
source§impl Display for PathioError
impl Display for PathioError
source§impl Error for PathioError
impl Error for PathioError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 RefUnwindSafe for PathioError
impl Send for PathioError
impl Sync for PathioError
impl Unpin for PathioError
impl UnwindSafe for PathioError
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