Skip to main content

Registry

Trait Registry 

Source
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§

Source

fn fetch_for(&self, qualifier: &RepositoryQualifier) -> Result<Fetch, Error>

Build the fetch request for an already-validated registry qualifier.

Source

fn bundle_from( &self, name: &str, response: Result<HttpResponse, TransportFailure>, ) -> Result<RegistryBundle, RegistryError>

Source

fn navigation_url( &self, name: &str, effective: Option<&DateTimeValue>, ) -> Option<String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§