pub struct Downloader { /* private fields */ }
Implementations§
Source§impl Downloader
impl Downloader
pub fn new(request_timeout: Duration) -> Result<Self>
pub async fn resolve_redirect( &self, url: &str, timestamp: &str, expected_digest: &str, ) -> Result<RedirectResolution, Error>
pub async fn resolve_redirect_shallow( &self, url: &str, timestamp: &str, expected_digest: &str, ) -> Result<(UrlInfo, String, bool), Error>
pub async fn download_item(&self, item: &Item) -> Result<Bytes, Error>
Trait Implementations§
Source§impl Clone for Downloader
impl Clone for Downloader
Source§fn clone(&self) -> Downloader
fn clone(&self) -> Downloader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Downloader
impl !RefUnwindSafe for Downloader
impl Send for Downloader
impl Sync for Downloader
impl Unpin for Downloader
impl !UnwindSafe for Downloader
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