pub struct FetchOptions {
pub timeout: Duration,
pub retransmit_after: Duration,
pub max_body: usize,
pub connect_addr: Option<SocketAddr>,
}Expand description
Options for a fetch.
Fields§
§timeout: DurationOverall deadline for the whole transaction. Default 30s.
retransmit_after: DurationRetransmit the request / re-acknowledge if nothing arrives for this long. Default 1s.
max_body: usizeRefuse reassembled bodies larger than this (also bounds the buffer held for out-of-order chunks). Default 16 MiB.
connect_addr: Option<SocketAddr>Send to this address instead of resolving the URL’s host. For tests and odd deployments.
Trait Implementations§
Source§impl Clone for FetchOptions
impl Clone for FetchOptions
Source§fn clone(&self) -> FetchOptions
fn clone(&self) -> FetchOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FetchOptions
impl Debug for FetchOptions
Auto Trait Implementations§
impl Freeze for FetchOptions
impl RefUnwindSafe for FetchOptions
impl Send for FetchOptions
impl Sync for FetchOptions
impl Unpin for FetchOptions
impl UnsafeUnpin for FetchOptions
impl UnwindSafe for FetchOptions
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