pub struct HttpMetadataClient { /* private fields */ }
Expand description
Repository HTTP client bound to a parsed repomd.xml
file.
Trait Implementations§
Source§impl DataResolver for HttpMetadataClient
impl DataResolver for HttpMetadataClient
Source§fn get_path(
&self,
path: String,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + '_>>
fn get_path( &self, path: String, ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + '_>>
Get the content of a relative path as an async reader.
Source§fn get_path_with_digest_verification(
&self,
path: String,
expected_size: u64,
expected_digest: ContentDigest,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + '_>>
fn get_path_with_digest_verification( &self, path: String, expected_size: u64, expected_digest: ContentDigest, ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + '_>>
Obtain a reader that performs content integrity checking. Read more
Source§fn get_path_decompressed(
&self,
path: String,
compression: Compression,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + '_>>
fn get_path_decompressed( &self, path: String, compression: Compression, ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + '_>>
Get the content of a relative path, transparently applying decompression.
Source§fn get_path_decompressed_with_digest_verification(
&self,
path: String,
compression: Compression,
expected_size: u64,
expected_digest: ContentDigest,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + '_>>
fn get_path_decompressed_with_digest_verification( &self, path: String, compression: Compression, expected_size: u64, expected_digest: ContentDigest, ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + '_>>
A combination of both Self::get_path_decompressed() and Self::get_path_with_digest_verification().
Source§impl MetadataReader for HttpMetadataClient
impl MetadataReader for HttpMetadataClient
Source§fn root_relative_path(&self) -> &str
fn root_relative_path(&self) -> &str
Obtain the path relative to the repository root this instance is bound to.
fn fetch_data_file<'slf>( &'slf self, data: &'slf RepoMdData, ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + 'slf>>
fn primary_packages( &self, ) -> Pin<Box<dyn Future<Output = Result<Primary>> + Send + '_>>
Auto Trait Implementations§
impl Freeze for HttpMetadataClient
impl !RefUnwindSafe for HttpMetadataClient
impl Send for HttpMetadataClient
impl Sync for HttpMetadataClient
impl Unpin for HttpMetadataClient
impl !UnwindSafe for HttpMetadataClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more