pub struct RawVolume(/* private fields */);
Expand description
A handle to a volume.
A volume is a partition with a filesystem within it.
Do NOT drop this object! It doesn’t hold a reference to the Volume Manager it was created from and the VolumeManager will think you still have the volume open if you just drop it, and it won’t let you open the file again.
Instead you must pass it to crate::VolumeManager::close_volume
to close
it cleanly.
Implementations§
Source§impl RawVolume
impl RawVolume
Sourcepub fn to_volume<D, T, const MAX_DIRS: usize, const MAX_FILES: usize, const MAX_VOLUMES: usize>(
self,
volume_mgr: &VolumeManager<D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>,
) -> Volume<'_, D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>where
D: BlockDevice,
T: TimeSource,
pub fn to_volume<D, T, const MAX_DIRS: usize, const MAX_FILES: usize, const MAX_VOLUMES: usize>(
self,
volume_mgr: &VolumeManager<D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>,
) -> Volume<'_, D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>where
D: BlockDevice,
T: TimeSource,
Convert a raw volume into a droppable Volume
Trait Implementations§
impl Copy for RawVolume
impl Eq for RawVolume
impl StructuralPartialEq for RawVolume
Auto Trait Implementations§
impl Freeze for RawVolume
impl RefUnwindSafe for RawVolume
impl Send for RawVolume
impl Sync for RawVolume
impl Unpin for RawVolume
impl UnwindSafe for RawVolume
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