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()
Source§impl From<Bug> for CopyPathError
impl From<Bug> for CopyPathError
Source§fn from(source: Bug) -> CopyPathError
fn from(source: Bug) -> CopyPathError
Source§impl From<CopyPathError> for DeviceOnlyError
impl From<CopyPathError> for DeviceOnlyError
Source§fn from(error: CopyPathError) -> DeviceOnlyError
fn from(error: CopyPathError) -> DeviceOnlyError
Source§impl From<FileError> for CopyPathError
impl From<FileError> for CopyPathError
Source§fn from(error: FileError) -> CopyPathError
fn from(error: FileError) -> CopyPathError
Auto Trait Implementations§
impl !RefUnwindSafe for CopyPathError
impl !UnwindSafe for CopyPathError
impl Freeze for CopyPathError
impl Send for CopyPathError
impl Sync for CopyPathError
impl Unpin for CopyPathError
impl UnsafeUnpin for CopyPathError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> HostError for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more