pub struct Downloader { /* private fields */ }Expand description
A reusable HTTP downloader.
Implementations§
Source§impl Downloader
impl Downloader
Sourcepub fn new() -> VtaResult<Downloader>
pub fn new() -> VtaResult<Downloader>
Build a downloader with sane defaults (TLS via rustls, connect timeout).
Sourcepub fn with_retries(self, retries: u32) -> Self
pub fn with_retries(self, retries: u32) -> Self
Override the per-URL retry count (default 3).
Auto Trait Implementations§
impl !RefUnwindSafe for Downloader
impl !UnwindSafe for Downloader
impl Freeze for Downloader
impl Send for Downloader
impl Sync for Downloader
impl Unpin for Downloader
impl UnsafeUnpin 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