#[non_exhaustive]pub enum ExFatError<E> {
Show 23 variants
Io(E),
DirectoryEntry(Error),
NotExFat(Error),
EndOfFatChain,
InvalidUtf16String {
reason: &'static str,
},
InvalidFileName {
reason: &'static str,
},
InvalidFileSystem {
reason: &'static str,
},
FileNotFound,
DirectoryNotFound,
Utf8Error,
DiskFull,
InvalidClusterId(u32),
InvalidSectorId(u32),
DirectoryNotEmpty,
WriteNotEnabled,
ReadNotEnabled,
AlreadyExists,
SeekOutOfRange,
InvalidAllocation {
lba: u32,
index: usize,
allocated: bool,
allocated_new: bool,
},
InvalidOptions,
Unexpected(&'static str),
FileNameBufferTooSmall,
DirectoryFull,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(E)
DirectoryEntry(Error)
NotExFat(Error)
EndOfFatChain
InvalidUtf16String
InvalidFileName
InvalidFileSystem
FileNotFound
DirectoryNotFound
Utf8Error
DiskFull
InvalidClusterId(u32)
InvalidSectorId(u32)
DirectoryNotEmpty
WriteNotEnabled
ReadNotEnabled
AlreadyExists
SeekOutOfRange
InvalidAllocation
InvalidOptions
Unexpected(&'static str)
FileNameBufferTooSmall
DirectoryFull
Trait Implementations§
Source§impl<E: Debug> Debug for ExFatError<E>
impl<E: Debug> Debug for ExFatError<E>
Source§impl<E> Display for ExFatError<E>
impl<E> Display for ExFatError<E>
Source§impl<E> Error for ExFatError<E>
impl<E> Error for ExFatError<E>
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<E> Freeze for ExFatError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ExFatError<E>where
E: RefUnwindSafe,
impl<E> Send for ExFatError<E>where
E: Send,
impl<E> Sync for ExFatError<E>where
E: Sync,
impl<E> Unpin for ExFatError<E>where
E: Unpin,
impl<E> UnsafeUnpin for ExFatError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for ExFatError<E>where
E: 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