pub trait Registry: Send + Sync {
// Required methods
fn fetch_for(&self, qualifier: &RepositoryQualifier) -> Result<Fetch, Error>;
fn bundle_from(
&self,
name: &str,
response: Result<HttpResponse, TransportFailure>,
) -> Result<RegistryBundle, RegistryError>;
fn navigation_url(
&self,
name: &str,
effective: Option<&DateTimeValue>,
) -> Option<String>;
}Expand description
A registry is a request builder and response interpreter. It never performs I/O.
Required Methods§
Sourcefn fetch_for(&self, qualifier: &RepositoryQualifier) -> Result<Fetch, Error>
fn fetch_for(&self, qualifier: &RepositoryQualifier) -> Result<Fetch, Error>
Build the fetch request for an already-validated registry qualifier.
fn bundle_from( &self, name: &str, response: Result<HttpResponse, TransportFailure>, ) -> Result<RegistryBundle, RegistryError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".