pub enum SourceDirectoryPathValidationError {
NotFound {
directory_path: PathBuf,
},
NotADirectory {
path: PathBuf,
},
UnableToAccess {
directory_path: PathBuf,
error: Error,
},
}Expand description
Source directory path validation error.
Variants§
NotFound
The source directory (path to the directory you want to copy) does not exist.
NotADirectory
The source path (path to the directory you want to copy) exists, but does not point to a directory.
UnableToAccess
The source directory could not be read, or its path could not be canonicalized.
Among other things, this can happen due to missing read permissions.
The inner std::io::Error will likely describe a more precise cause of this error.
Trait Implementations§
Source§impl Error for SourceDirectoryPathValidationError
impl Error for SourceDirectoryPathValidationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<SourceDirectoryPathValidationError> for CopyDirectoryPreparationError
impl From<SourceDirectoryPathValidationError> for CopyDirectoryPreparationError
Source§fn from(source: SourceDirectoryPathValidationError) -> Self
fn from(source: SourceDirectoryPathValidationError) -> Self
Converts to this type from the input type.
Source§impl From<SourceDirectoryPathValidationError> for MoveDirectoryPreparationError
impl From<SourceDirectoryPathValidationError> for MoveDirectoryPreparationError
Source§fn from(source: SourceDirectoryPathValidationError) -> Self
fn from(source: SourceDirectoryPathValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SourceDirectoryPathValidationError
impl !RefUnwindSafe for SourceDirectoryPathValidationError
impl Send for SourceDirectoryPathValidationError
impl Sync for SourceDirectoryPathValidationError
impl Unpin for SourceDirectoryPathValidationError
impl !UnwindSafe for SourceDirectoryPathValidationError
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