pub struct HttpPoolConfig {
pub pool_max_idle_per_host: Option<usize>,
pub pool_idle_timeout_secs: Option<u64>,
pub timeout_secs: Option<u64>,
pub connect_timeout_secs: Option<u64>,
}Expand description
Per-worker HTTP connection pool configuration.
All fields optional — None means “use router/global default”.
Fields§
§pool_max_idle_per_host: Option<usize>Max idle connections per host (default: 8).
pool_idle_timeout_secs: Option<u64>Idle connection timeout in seconds (default: 50).
timeout_secs: Option<u64>Request timeout in seconds (default: 30).
connect_timeout_secs: Option<u64>Connect timeout in seconds (default: 10).
Implementations§
Trait Implementations§
Source§impl Clone for HttpPoolConfig
impl Clone for HttpPoolConfig
Source§fn clone(&self) -> HttpPoolConfig
fn clone(&self) -> HttpPoolConfig
Returns a duplicate 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 HttpPoolConfig
impl Debug for HttpPoolConfig
Source§impl Default for HttpPoolConfig
impl Default for HttpPoolConfig
Source§fn default() -> HttpPoolConfig
fn default() -> HttpPoolConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpPoolConfig
impl<'de> Deserialize<'de> for HttpPoolConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for HttpPoolConfig
impl JsonSchema for HttpPoolConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for HttpPoolConfig
impl RefUnwindSafe for HttpPoolConfig
impl Send for HttpPoolConfig
impl Sync for HttpPoolConfig
impl Unpin for HttpPoolConfig
impl UnsafeUnpin for HttpPoolConfig
impl UnwindSafe for HttpPoolConfig
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