pub enum FileRemoveError {
NotFound {
path: PathBuf,
},
NotAFile {
path: PathBuf,
},
UnableToAccessFile {
path: PathBuf,
error: Error,
},
OtherIoError {
error: Error,
},
}Expand description
An error that can occur when removing a file.
Variants§
NotFound
The provided source file path does not exist.
NotAFile
The provided source file path exists, but is not a file.
UnableToAccessFile
The file cannot be accessed, for example due to missing permissions.
The inner std::io::Error will likely describe the real cause of this error.
Fields
OtherIoError
Uncategorized IO error.
The inner std::io::Error will likely describe the real cause of this error.
Trait Implementations§
Source§impl Debug for FileRemoveError
impl Debug for FileRemoveError
Source§impl Display for FileRemoveError
impl Display for FileRemoveError
Source§impl Error for FileRemoveError
impl Error for FileRemoveError
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()
Auto Trait Implementations§
impl Freeze for FileRemoveError
impl !RefUnwindSafe for FileRemoveError
impl Send for FileRemoveError
impl Sync for FileRemoveError
impl Unpin for FileRemoveError
impl !UnwindSafe for FileRemoveError
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