pub struct ServersTransportForwardingTimeouts {
pub dial_timeout: Option<IntOrString>,
pub idle_conn_timeout: Option<IntOrString>,
pub ping_timeout: Option<IntOrString>,
pub read_idle_timeout: Option<IntOrString>,
pub response_header_timeout: Option<IntOrString>,
}Expand description
ForwardingTimeouts defines the timeouts for requests forwarded to the backend servers.
Fields§
§dial_timeout: Option<IntOrString>DialTimeout is the amount of time to wait until a connection to a backend server can be established.
idle_conn_timeout: Option<IntOrString>IdleConnTimeout is the maximum period for which an idle HTTP keep-alive connection will remain open before closing itself.
ping_timeout: Option<IntOrString>PingTimeout is the timeout after which the HTTP/2 connection will be closed if a response to ping is not received.
read_idle_timeout: Option<IntOrString>ReadIdleTimeout is the timeout after which a health check using ping frame will be carried out if no frame is received on the HTTP/2 connection.
response_header_timeout: Option<IntOrString>ResponseHeaderTimeout is the amount of time to wait for a server’s response headers after fully writing the request (including its body, if any).
Implementations§
Source§impl ServersTransportForwardingTimeouts
impl ServersTransportForwardingTimeouts
Sourcepub fn builder() -> ServersTransportForwardingTimeoutsBuilder<((), (), (), (), ())>
pub fn builder() -> ServersTransportForwardingTimeoutsBuilder<((), (), (), (), ())>
Create a builder for building ServersTransportForwardingTimeouts.
On the builder, call .dial_timeout(...)(optional), .idle_conn_timeout(...)(optional), .ping_timeout(...)(optional), .read_idle_timeout(...)(optional), .response_header_timeout(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ServersTransportForwardingTimeouts.
Trait Implementations§
Source§impl Clone for ServersTransportForwardingTimeouts
impl Clone for ServersTransportForwardingTimeouts
Source§fn clone(&self) -> ServersTransportForwardingTimeouts
fn clone(&self) -> ServersTransportForwardingTimeouts
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ServersTransportForwardingTimeouts
impl Default for ServersTransportForwardingTimeouts
Source§fn default() -> ServersTransportForwardingTimeouts
fn default() -> ServersTransportForwardingTimeouts
Source§impl<'de> Deserialize<'de> for ServersTransportForwardingTimeouts
impl<'de> Deserialize<'de> for ServersTransportForwardingTimeouts
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>,
Source§impl JsonSchema for ServersTransportForwardingTimeouts
impl JsonSchema for ServersTransportForwardingTimeouts
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for ServersTransportForwardingTimeouts
impl PartialEq for ServersTransportForwardingTimeouts
Source§fn eq(&self, other: &ServersTransportForwardingTimeouts) -> bool
fn eq(&self, other: &ServersTransportForwardingTimeouts) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServersTransportForwardingTimeouts
Auto Trait Implementations§
impl Freeze for ServersTransportForwardingTimeouts
impl RefUnwindSafe for ServersTransportForwardingTimeouts
impl Send for ServersTransportForwardingTimeouts
impl Sync for ServersTransportForwardingTimeouts
impl Unpin for ServersTransportForwardingTimeouts
impl UnwindSafe for ServersTransportForwardingTimeouts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more