pub enum Error<E>where
E: Debug,{
Show 27 variants
DeviceError(E),
FormatError(&'static str),
NoSuchVolume,
FilenameError(FilenameError),
TooManyOpenVolumes,
TooManyOpenDirs,
TooManyOpenFiles,
BadHandle,
FileNotFound,
FileAlreadyOpen,
DirAlreadyOpen,
OpenedDirAsFile,
OpenedFileAsDir,
DeleteDirAsFile,
VolumeStillInUse,
VolumeAlreadyOpen,
Unsupported,
EndOfFile,
BadCluster,
ConversionError,
NotEnoughSpace,
AllocationError,
UnterminatedFatChain,
ReadOnly,
FileAlreadyExists,
BadBlockSize(u16),
InvalidOffset,
}
Expand description
Represents all the ways the functions in this crate can fail.
Variants§
DeviceError(E)
The underlying block device threw an error.
FormatError(&'static str)
The filesystem is badly formatted (or this code is buggy).
NoSuchVolume
The given VolumeIdx
was bad,
FilenameError(FilenameError)
The given filename was bad
TooManyOpenVolumes
Out of memory opening volumes
TooManyOpenDirs
Out of memory opening directories
TooManyOpenFiles
Out of memory opening files
BadHandle
Bad handle given
FileNotFound
That file doesn’t exist
FileAlreadyOpen
You can’t open a file twice or delete an open file
DirAlreadyOpen
You can’t open a directory twice
OpenedDirAsFile
You can’t open a directory as a file
OpenedFileAsDir
You can’t open a file as a directory
DeleteDirAsFile
You can’t delete a directory as a file
VolumeStillInUse
You can’t close a volume with open files or directories
VolumeAlreadyOpen
You can’t open a volume twice
Unsupported
We can’t do that yet
EndOfFile
Tried to read beyond end of file
BadCluster
Found a bad cluster
ConversionError
Error while converting types
NotEnoughSpace
The device does not have enough space for the operation
AllocationError
Cluster was not properly allocated by the library
UnterminatedFatChain
Jumped to free space during FAT traversing
ReadOnly
Tried to open Read-Only file with write mode
FileAlreadyExists
Tried to create an existing file
BadBlockSize(u16)
Bad block size - only 512 byte blocks supported
InvalidOffset
Bad offset given when seeking
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<E>where
E: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)