#[non_exhaustive]pub enum FsReader<R> {
Ext(Reader<R>),
Fat(Reader<R>),
ExFat(Reader<R>),
Btrfs(Reader<R>),
}Expand description
An open filesystem, as whichever family claimed the image.
Present only in a build that compiles in at least one family: with none, there is
nothing an image could be opened as, and detect already answers
Unrecognized for every source.
Each variant carries that family’s own reader, whole: nothing is hidden behind a common
interface, so a caller that has matched its way to one has everything that family
offers. What every variant does share is FsTree, so an extraction
need not match at all.
The enum is #[non_exhaustive], and a build compiles in the variants of the families it
compiles in — so a match carries a wildcard arm, and adding a family is not a breaking
change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ext(Reader<R>)
An ext2, ext3, or ext4 filesystem.
Fat(Reader<R>)
A FAT12, FAT16, or FAT32 volume.
ExFat(Reader<R>)
An exFAT volume.
Btrfs(Reader<R>)
A btrfs filesystem.