pub struct EggfetchConfig {
pub user_agent: String,
pub connect_timeout: Duration,
pub total_timeout: Duration,
pub max_redirects: usize,
pub proxy: ProxyDecision,
}Expand description
Strict transport configuration. All policy lives here.
Fields§
§user_agent: StringUser agent header.
connect_timeout: DurationConnect deadline.
total_timeout: DurationTotal deadline.
max_redirects: usizeRedirect bound.
proxy: ProxyDecisionProxy routing decision.
Implementations§
Source§impl EggfetchConfig
impl EggfetchConfig
Sourcepub fn user_agent(self, agent: impl Into<String>) -> Self
pub fn user_agent(self, agent: impl Into<String>) -> Self
Sets the user agent.
Sourcepub fn max_redirects(self, max: usize) -> Self
pub fn max_redirects(self, max: usize) -> Self
Sets the redirect bound.
Sourcepub fn proxy(self, proxy: ProxyDecision) -> Self
pub fn proxy(self, proxy: ProxyDecision) -> Self
Sets the proxy decision.
Trait Implementations§
Source§impl Clone for EggfetchConfig
impl Clone for EggfetchConfig
Source§impl Debug for EggfetchConfig
impl Debug for EggfetchConfig
Auto Trait Implementations§
impl Freeze for EggfetchConfig
impl RefUnwindSafe for EggfetchConfig
impl Send for EggfetchConfig
impl Sync for EggfetchConfig
impl Unpin for EggfetchConfig
impl UnsafeUnpin for EggfetchConfig
impl UnwindSafe for EggfetchConfig
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