pub trait ResourceReader: Send + Sync {
// Required methods
fn scheme(&self) -> &str;
fn has_hierarchical_uris(&self) -> bool;
fn is_globbable(&self) -> bool;
fn read(&self, uri: &str) -> Result<Vec<u8>, String>;
// Provided method
fn list(&self, uri: &str) -> Result<Vec<PathElement>, String> { ... }
}Expand description
A custom resource reader that can resolve resources by URI scheme.
Required Methods§
Sourcefn has_hierarchical_uris(&self) -> bool
fn has_hierarchical_uris(&self) -> bool
Whether URIs of this scheme are hierarchical.
Sourcefn is_globbable(&self) -> bool
fn is_globbable(&self) -> bool
Whether this reader supports globbing.