pub struct DownloaderBuilder(/* private fields */);Expand description
Builder for Downloader. Settings are applied to the wrapped
Downloader, which build returns.
Implementations§
Source§impl DownloaderBuilder
impl DownloaderBuilder
pub fn max_attempts(self, max_attempts: u32) -> Self
pub fn backoff(self, backoff: Duration) -> Self
pub fn customize_request( self, customize: impl Fn(RequestBuilder) -> RequestBuilder + Send + Sync + 'static, ) -> Self
pub fn build(self) -> Downloader
Auto Trait Implementations§
impl !RefUnwindSafe for DownloaderBuilder
impl !UnwindSafe for DownloaderBuilder
impl Freeze for DownloaderBuilder
impl Send for DownloaderBuilder
impl Sync for DownloaderBuilder
impl Unpin for DownloaderBuilder
impl UnsafeUnpin for DownloaderBuilder
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