pub trait BundleSource {
// Required methods
fn open(&self, path: &str) -> Result<Box<dyn Read + Send>, String>;
fn list(&self) -> Result<Vec<String>, String>;
}Expand description
Trait for reading files from a bundle
pub trait BundleSource {
// Required methods
fn open(&self, path: &str) -> Result<Box<dyn Read + Send>, String>;
fn list(&self) -> Result<Vec<String>, String>;
}Trait for reading files from a bundle