Skip to main content

SnapshotSource

Trait SnapshotSource 

Source
pub trait SnapshotSource {
    // Required methods
    async fn manifest(&self) -> Result<Manifest>;
    async fn read(&self, file: &FileInfo) -> Result<Vec<u8>>;
}
Expand description

Trait implemented by HTTP, directory, or future object-storage sources.

Required Methods§

Source

async fn manifest(&self) -> Result<Manifest>

Source

async fn read(&self, file: &FileInfo) -> Result<Vec<u8>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§