pub enum CopyPathError {
NotAFolder(PathBuf),
Link(PathBuf),
Exists(PathBuf),
Clash {
path: RelativePath,
other: RelativePath,
},
NotUnicode(PathBuf),
File(FileError),
Bug(Bug),
}Expand description
Why a copy can’t go where the app named.
Variants§
NotAFolder(PathBuf)
The folder isn’t an absolute path to a folder, or a path below it passes through something that isn’t a folder.
Link(PathBuf)
A path below the folder passes through a symbolic link.
Exists(PathBuf)
Something is at a file’s path already.
Clash
Two paths of the call are one path once each name is made valid
(§17.3), as Why?.flac and Why?.flac are, or differ only in case
or Unicode form, as Album/Track.flac and album/track.flac do. Many
volumes, the default macOS and Windows ones among them, hold such
names as one, so the second copy could never be placed. Each path is
as the app named it, up to the name that clashes.
NotUnicode(PathBuf)
The folder’s path isn’t valid Unicode, which coven records as text.
File(FileError)
Inspecting a path failed.
Bug(Bug)
Inspecting the paths panicked on the blocking pool: a bug, which the caller reports (E15).
Trait Implementations§
Source§impl CarriesBug for CopyPathError
impl CarriesBug for CopyPathError
Source§impl Debug for CopyPathError
impl Debug for CopyPathError
Source§impl Display for CopyPathError
impl Display for CopyPathError
Source§impl Error for CopyPathError
impl Error for CopyPathError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()