pub enum RootError<O: ReadOffset> {
Show 18 variants
Io(O::Err),
WrongFs,
InvalidBytesPerSectorShift(u8),
InvalidSectorsPerClusterShift(u8),
InvalidNumberOfFats(u8),
Fat(FatLoadError<Arc<O>>),
InvalidRootDirectoryClusterIndex(u32),
ClusterChain(ClusterChainError),
DirEntry(EntryReaderError<Arc<O>>),
RootEntryNotPrimary(u8),
InvalidNumberOfAllocationBitmaps,
InvalidAllocationBitmap,
InvalidNumberOfUpcaseTables,
InvalidUpcaseTable,
InvalidNumberOfVolumeLabels,
InvalidVolumeLabel,
InvalidFileEntry(FileParserError<Arc<O>>),
UnexpectedRootEntry(u8),
}Variants§
Io(O::Err)
WrongFs
InvalidBytesPerSectorShift(u8)
InvalidSectorsPerClusterShift(u8)
InvalidNumberOfFats(u8)
Fat(FatLoadError<Arc<O>>)
InvalidRootDirectoryClusterIndex(u32)
ClusterChain(ClusterChainError)
DirEntry(EntryReaderError<Arc<O>>)
RootEntryNotPrimary(u8)
InvalidNumberOfAllocationBitmaps
InvalidAllocationBitmap
InvalidNumberOfUpcaseTables
InvalidUpcaseTable
InvalidNumberOfVolumeLabels
InvalidVolumeLabel
InvalidFileEntry(FileParserError<Arc<O>>)
UnexpectedRootEntry(u8)
Trait Implementations§
Source§impl<O: ReadOffset> Display for RootError<O>where
O::Err: Display,
FatLoadError<Arc<O>>: Display,
EntryReaderError<Arc<O>>: Display,
FileParserError<Arc<O>>: Display,
impl<O: ReadOffset> Display for RootError<O>where
O::Err: Display,
FatLoadError<Arc<O>>: Display,
EntryReaderError<Arc<O>>: Display,
FileParserError<Arc<O>>: Display,
Source§impl<O: ReadOffset> Error for RootError<O>where
FatLoadError<Arc<O>>: Error + 'static,
EntryReaderError<Arc<O>>: Error + 'static,
FileParserError<Arc<O>>: Error + 'static,
Self: Debug + Display,
impl<O: ReadOffset> Error for RootError<O>where
FatLoadError<Arc<O>>: Error + 'static,
EntryReaderError<Arc<O>>: Error + 'static,
FileParserError<Arc<O>>: Error + 'static,
Self: Debug + Display,
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()
Source§impl<O: ReadOffset> From<ClusterChainError> for RootError<O>
impl<O: ReadOffset> From<ClusterChainError> for RootError<O>
Source§fn from(source: ClusterChainError) -> Self
fn from(source: ClusterChainError) -> Self
Converts to this type from the input type.
Source§impl<O: ReadOffset> From<EntryReaderError<Arc<O>>> for RootError<O>
impl<O: ReadOffset> From<EntryReaderError<Arc<O>>> for RootError<O>
Source§fn from(source: EntryReaderError<Arc<O>>) -> Self
fn from(source: EntryReaderError<Arc<O>>) -> Self
Converts to this type from the input type.
Source§impl<O: ReadOffset> From<FatLoadError<Arc<O>>> for RootError<O>
impl<O: ReadOffset> From<FatLoadError<Arc<O>>> for RootError<O>
Source§fn from(source: FatLoadError<Arc<O>>) -> Self
fn from(source: FatLoadError<Arc<O>>) -> Self
Converts to this type from the input type.
Source§impl<O: ReadOffset> From<FileParserError<Arc<O>>> for RootError<O>
impl<O: ReadOffset> From<FileParserError<Arc<O>>> for RootError<O>
Source§fn from(source: FileParserError<Arc<O>>) -> Self
fn from(source: FileParserError<Arc<O>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<O> Freeze for RootError<O>
impl<O> RefUnwindSafe for RootError<O>
impl<O> Send for RootError<O>
impl<O> Sync for RootError<O>
impl<O> Unpin for RootError<O>
impl<O> UnwindSafe for RootError<O>
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