pub struct HttpRepositoryClient { /* private fields */ }
Expand description
Client for RPM repositories served via HTTP.
Instances are bound to a base URL, which represents the base directory.
Implementations§
Trait Implementations§
Source§impl DataResolver for HttpRepositoryClient
impl DataResolver for HttpRepositoryClient
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 Debug for HttpRepositoryClient
impl Debug for HttpRepositoryClient
Source§impl RepositoryRootReader for HttpRepositoryClient
impl RepositoryRootReader for HttpRepositoryClient
fn metadata_reader( &self, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn MetadataReader>>> + Send + '_>>
Auto Trait Implementations§
impl Freeze for HttpRepositoryClient
impl !RefUnwindSafe for HttpRepositoryClient
impl Send for HttpRepositoryClient
impl Sync for HttpRepositoryClient
impl Unpin for HttpRepositoryClient
impl !UnwindSafe for HttpRepositoryClient
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