pub trait Resource: Send + Sync + 'static {
fn version(&self, path: &str) -> Result<String, Error>;
fn file(&self, path: &str) -> Result<Vec<u8>, Error>;
}
Expand description
Resource layer that can provide data to an ironworks instance.
Required Methods
Get the version string for the file at path
. A return value of
Err(Error::NotFound(ErrorValue::Path(_)))
will result in lookups
continuing to the next resource.