pub struct FastDownPullerOptions<'a> {
pub url: Url,
pub headers: Arc<HeaderMap>,
pub proxy: Proxy<&'a str>,
pub accept_invalid_certs: bool,
pub accept_invalid_hostnames: bool,
pub cookie_store: bool,
pub file_id: FileId,
pub resp: Option<Arc<Mutex<Option<Response>>>>,
pub available_ips: Arc<[IpAddr]>,
pub max_redirects: usize,
}Expand description
Options for constructing a FastDownPuller.
Fields§
§url: UrlThe URL to download.
headers: Arc<HeaderMap>Extra request headers sent on every request.
proxy: Proxy<&'a str>Proxy selection (no / system / custom URL).
accept_invalid_certs: boolAccept invalid TLS certificates (requires the reqwest-tls feature).
accept_invalid_hostnames: boolAccept invalid TLS hostnames (requires the reqwest-tls feature).
Enable a cookie store (requires the cookie-store feature).
file_id: FileIdThe expected FileId, used to detect a changed resource and resume safely.
resp: Option<Arc<Mutex<Option<Response>>>>An already-open response to reuse for the first request (e.g. from a prefetch).
available_ips: Arc<[IpAddr]>Candidate local source IPs for outbound connections; rotated across clones.
max_redirects: usizeMaximum number of redirects to follow before failing.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FastDownPullerOptions<'a>
impl<'a> !UnwindSafe for FastDownPullerOptions<'a>
impl<'a> Freeze for FastDownPullerOptions<'a>
impl<'a> Send for FastDownPullerOptions<'a>
impl<'a> Sync for FastDownPullerOptions<'a>
impl<'a> Unpin for FastDownPullerOptions<'a>
impl<'a> UnsafeUnpin for FastDownPullerOptions<'a>
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