Trait asset_lru::Vfs[][src]

pub trait Vfs: Send + Sync + 'static {
    type Reader: VfsReader;
    fn open(&self, key: &str) -> Result<Self::Reader, Error>;
}
Expand description

“open” a “file” and return a VfsReader over it.

This is the first step of the decoding process, and is used to get from a string key to a reader over some bytes to pass to the Decoder.

Associated Types

Required methods

Open a file.

Implementations on Foreign Types

Implementors