pub trait VolumeSystem: Send + Sync {
// Required methods
fn scheme(&self) -> VolumeScheme;
fn volumes(&self) -> &[VolumeDesc];
fn open_volume(&self, index: usize) -> VfsResult<DynSource>;
}Expand description
A partitioning/volume scheme over one crate::ImageSource. &self throughout.
Required Methods§
fn scheme(&self) -> VolumeScheme
Sourcefn volumes(&self) -> &[VolumeDesc]
fn volumes(&self) -> &[VolumeDesc]
The volumes/stores this scheme exposes.
Sourcefn open_volume(&self, index: usize) -> VfsResult<DynSource>
fn open_volume(&self, index: usize) -> VfsResult<DynSource>
A read-only byte source for one volume (a sub-range of the parent, or a snapshot-materialized source).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".