Struct puff_rs::runtime::HttpClientOpts
source · pub struct HttpClientOpts {
pub http2_prior_knowledge: Option<bool>,
pub max_idle_connections: Option<u32>,
pub user_agent: Option<HeaderValue>,
}
Fields
http2_prior_knowledge: Option<bool>
max_idle_connections: Option<u32>
user_agent: Option<HeaderValue>
Implementations
sourceimpl HttpClientOpts
impl HttpClientOpts
pub fn set_http2_prior_knowledge(self, val: bool) -> Self
pub fn set_max_idle_connections(self, val: u32) -> Self
pub fn set_user_agent(self, val: HeaderValue) -> Self
Trait Implementations
sourceimpl Clone for HttpClientOpts
impl Clone for HttpClientOpts
sourcefn clone(&self) -> HttpClientOpts
fn clone(&self) -> HttpClientOpts
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for HttpClientOpts
impl Default for HttpClientOpts
sourcefn default() -> HttpClientOpts
fn default() -> HttpClientOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for HttpClientOpts
impl Send for HttpClientOpts
impl Sync for HttpClientOpts
impl Unpin for HttpClientOpts
impl UnwindSafe for HttpClientOpts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more