pub trait ReleaseBundle: Send + Sync {
// Required methods
fn manifest(&self) -> Result<ReleaseManifest, AppError>;
fn blob(&self, digest: &Sha256) -> Result<Vec<u8>, AppError>;
// Provided methods
fn artifact(&self, path: &str) -> Result<Vec<u8>, AppError> { ... }
fn declaration(&self) -> Result<Declaration, AppError> { ... }
}Expand description
One release’s bytes, however they were obtained.
Required Methods§
Sourcefn manifest(&self) -> Result<ReleaseManifest, AppError>
fn manifest(&self) -> Result<ReleaseManifest, AppError>
Provided Methods§
Sourcefn artifact(&self, path: &str) -> Result<Vec<u8>, AppError>
fn artifact(&self, path: &str) -> Result<Vec<u8>, AppError>
One artifact’s bytes, by the path the manifest names.
§Errors
AppError::Refused when the bundle carries no such path.
Sourcefn declaration(&self) -> Result<Declaration, AppError>
fn declaration(&self) -> Result<Declaration, AppError>
What this release declares it lands.
§Errors
AppError::Refused when the bundle carries no declaration or the
declaration is one this engine does not decode.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".