pub enum CopyError {
Io(Error),
Walk(WalkError),
DepthExceeded(PathBuf),
SymlinkLoop(PathBuf),
SrcNotFound(PathBuf),
DestNotDir(PathBuf),
NotSupported(PathBuf),
}Expand description
Enumeration of possible errors during a copy operation.
Variants§
Io(Error)
Standard input/output error.
Walk(WalkError)
Error encountered while traversing the directory tree.
DepthExceeded(PathBuf)
The directory traversal reached the maximum configured depth.
SymlinkLoop(PathBuf)
A circular reference was detected through symbolic links.
SrcNotFound(PathBuf)
The specified source path does not exist.
DestNotDir(PathBuf)
The destination exists but is not a directory when one was expected.
NotSupported(PathBuf)
Encountered a file type or operation that is not supported (e.g., special devices).
Trait Implementations§
Source§impl Error for CopyError
impl Error for CopyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the underlying cause of the error if it exists.
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 CopyError
impl !RefUnwindSafe for CopyError
impl Send for CopyError
impl Sync for CopyError
impl Unpin for CopyError
impl UnsafeUnpin for CopyError
impl !UnwindSafe for CopyError
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