Enum fs_more::error::DirectorySizeScanError
source · pub enum DirectorySizeScanError {
ScanDirectoryNotFound {
path: PathBuf,
},
ScanDirectoryNotADirectory {
path: PathBuf,
},
ScanEntryNoLongerExists {
path: PathBuf,
},
UnableToAccessFile {
file_path: PathBuf,
error: Error,
},
UnableToAccessDirectory {
directory_path: PathBuf,
error: Error,
},
OtherIoError {
error: Error,
},
}Expand description
An error that can occur when querying size of a scanned directory.
Variants§
ScanDirectoryNotFound
The provided directory path does not exist.
ScanDirectoryNotADirectory
The root directory path exists, but is not a directory nor a symbolic link to one.
ScanEntryNoLongerExists
A file or directory that was scanned on initialization
of DirectoryScan is no longer there or no longer a file.
This is basically a TOCTOU
UnableToAccessFile
A file cannot be accessed (e.g. due to missing permissions).
The inner std::io::Error will likely describe a more precise cause of this error.
Fields
UnableToAccessDirectory
The directory cannot be accessed (e.g. due to missing permissions).
The inner std::io::Error will likely describe a more precise cause of this error.
Fields
OtherIoError
Some other std::io::Error was encountered.
Trait Implementations§
source§impl Debug for DirectorySizeScanError
impl Debug for DirectorySizeScanError
source§impl Display for DirectorySizeScanError
impl Display for DirectorySizeScanError
source§impl Error for DirectorySizeScanError
impl Error for DirectorySizeScanError
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()
source§impl From<DirectorySizeScanError> for MoveDirectoryPreparationError
impl From<DirectorySizeScanError> for MoveDirectoryPreparationError
source§fn from(source: DirectorySizeScanError) -> Self
fn from(source: DirectorySizeScanError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DirectorySizeScanError
impl !RefUnwindSafe for DirectorySizeScanError
impl Send for DirectorySizeScanError
impl Sync for DirectorySizeScanError
impl Unpin for DirectorySizeScanError
impl !UnwindSafe for DirectorySizeScanError
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