pub struct FetcherConfig {
pub user_agent: String,
pub address_policy: AddressPolicy,
pub request_timeout: Duration,
pub connect_timeout: Duration,
pub max_redirects: u8,
pub max_body_bytes: usize,
}Fields§
§user_agent: String§address_policy: AddressPolicy§request_timeout: Duration§connect_timeout: Duration§max_redirects: u8§max_body_bytes: usizeImplementations§
Source§impl FetcherConfig
impl FetcherConfig
pub fn new(address_policy: AddressPolicy) -> Self
Trait Implementations§
Source§impl Clone for FetcherConfig
impl Clone for FetcherConfig
Auto Trait Implementations§
impl Freeze for FetcherConfig
impl RefUnwindSafe for FetcherConfig
impl Send for FetcherConfig
impl Sync for FetcherConfig
impl Unpin for FetcherConfig
impl UnsafeUnpin for FetcherConfig
impl UnwindSafe for FetcherConfig
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