Struct revolt_a2::client::ClientConfig
source · pub struct ClientConfig {
pub endpoint: Endpoint,
pub request_timeout_secs: Option<u64>,
pub pool_idle_timeout_secs: Option<u64>,
pub http2_keep_alive_interval_secs: Option<u64>,
pub http2_keep_alive_while_idle: bool,
}Expand description
The default implementation uses Endpoint::Production and can be created
trough calling ClientConfig::default.
Fields§
§endpoint: EndpointThe endpoint where the requests are sent to
request_timeout_secs: Option<u64>The timeout of the HTTP requests
pool_idle_timeout_secs: Option<u64>The timeout for idle sockets being kept alive
http2_keep_alive_interval_secs: Option<u64>§http2_keep_alive_while_idle: boolImplementations§
Trait Implementations§
source§impl Clone for ClientConfig
impl Clone for ClientConfig
source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a copy of the value. Read more
1.0.0 · 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 ClientConfig
impl Debug for ClientConfig
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)