#[non_exhaustive]pub enum OpenVolume<'a, S>where
S: Seek,{
Fat(FatVolume<Borrowed<'a, S>>),
}Expand description
An opened block filesystem with lossless access to its concrete handle.
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.
Implementations§
Source§impl<'a, S> OpenVolume<'a, S>
impl<'a, S> OpenVolume<'a, S>
Sourcepub fn open(source: &'a mut S, logical_block_size: u32) -> Result<Self>
pub fn open(source: &'a mut S, logical_block_size: u32) -> Result<Self>
Detects and opens a filesystem at the beginning of source.
Partitioned disks must first be narrowed to a partition view.
Sourcepub fn open_detected(source: &'a mut S, detected: FatVariant) -> Result<Self>
pub fn open_detected(source: &'a mut S, detected: FatVariant) -> Result<Self>
Opens a filesystem using a previously detected FAT variant.
Sourcepub fn format(&self) -> FatVariant
pub fn format(&self) -> FatVariant
Returns the concrete FAT variant of the opened filesystem.
Sourcepub fn as_fat_mut(&mut self) -> Option<&mut FatVolume<Borrowed<'a, S>>>
pub fn as_fat_mut(&mut self) -> Option<&mut FatVolume<Borrowed<'a, S>>>
Mutably borrows the opened FAT filesystem.
Sourcepub fn into_fat(self) -> Result<FatVolume<Borrowed<'a, S>>, Self>
pub fn into_fat(self) -> Result<FatVolume<Borrowed<'a, S>>, Self>
Extracts the FAT filesystem, returning self if its format differs.
Sourcepub fn into_inner(self) -> &'a mut S
pub fn into_inner(self) -> &'a mut S
Closes the filesystem and returns the borrowed source.
Auto Trait Implementations§
impl<'a, S> !Freeze for OpenVolume<'a, S>
impl<'a, S> !RefUnwindSafe for OpenVolume<'a, S>
impl<'a, S> !Send for OpenVolume<'a, S>
impl<'a, S> !Sync for OpenVolume<'a, S>
impl<'a, S> !UnwindSafe for OpenVolume<'a, S>
impl<'a, S> Unpin for OpenVolume<'a, S>
impl<'a, S> UnsafeUnpin for OpenVolume<'a, S>
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