Trait RepositoryRootReader

Source
pub trait RepositoryRootReader: DataResolver + Sync {
    // Required methods
    fn url(&self) -> Result<Url>;
    fn metadata_reader(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn MetadataReader>>> + Send + '_>>;

    // Provided method
    fn fetch_repomd(
        &self,
        path: String,
    ) -> Pin<Box<dyn Future<Output = Result<RepoMd>> + Send + '_>> { ... }
}
Expand description

A read-only interface for the root of an RPM repository.

Required Methods§

Source

fn url(&self) -> Result<Url>

Obtain the URL to which this reader is bound.

Source

fn metadata_reader( &self, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn MetadataReader>>> + Send + '_>>

Provided Methods§

Source

fn fetch_repomd( &self, path: String, ) -> Pin<Box<dyn Future<Output = Result<RepoMd>> + Send + '_>>

Fetch and parse a repomd.xml file given the relative path to that file.

Implementors§