Skip to main content

VolumeSystem

Trait VolumeSystem 

Source
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§

Source

fn scheme(&self) -> VolumeScheme

Source

fn volumes(&self) -> &[VolumeDesc]

The volumes/stores this scheme exposes.

Source

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".

Implementors§