#[non_exhaustive]pub enum FatError {
Io {
op: &'static str,
source: Error,
},
InvalidBoot(String),
NotFat(String),
Corrupt(String),
}Expand description
Errors raised while opening or navigating a FAT/exFAT volume.
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
Underlying reader failed during the named operation.
Fields
InvalidBoot(String)
The boot sector is structurally invalid; the message names the offending field and value (fail-loud, show-the-value).
NotFat(String)
The volume is not a recognized FAT or exFAT filesystem; the message carries the bytes/signature that were found instead.
Corrupt(String)
A structure was internally inconsistent while navigating.
Implementations§
Trait Implementations§
Source§impl Error for FatError
impl Error for FatError
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 !RefUnwindSafe for FatError
impl !UnwindSafe for FatError
impl Freeze for FatError
impl Send for FatError
impl Sync for FatError
impl Unpin for FatError
impl UnsafeUnpin for FatError
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