pub enum FSError<I>where
I: IOError,{
InternalFSError(InternalFSError),
MalformedPath,
NotADirectory,
IsADirectory,
NotFound,
IOError(I),
}
Expand description
An error indicating that a filesystem-related operation has failed
Variants§
InternalFSError(InternalFSError)
An internal FS error occured
MalformedPath
The PathBuf provided is malformed.
This is mostly an error variant used for internal testing. If you get this error, open an issue: https://github.com/Oakchris1955/simple-fatfs/issues
NotADirectory
Expected a directory
IsADirectory
Found a directory when we expected a file
NotFound
A file or directory wasn’t found
IOError(I)
An IO error occured
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for FSError<I>where
I: Freeze,
impl<I> RefUnwindSafe for FSError<I>where
I: RefUnwindSafe,
impl<I> Send for FSError<I>where
I: Send,
impl<I> Sync for FSError<I>where
I: Sync,
impl<I> Unpin for FSError<I>where
I: Unpin,
impl<I> UnwindSafe for FSError<I>where
I: UnwindSafe,
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