Struct aws_sdk_ecs::types::TimeoutConfiguration
source · #[non_exhaustive]pub struct TimeoutConfiguration {
pub idle_timeout_seconds: Option<i32>,
pub per_request_timeout_seconds: Option<i32>,
}
Expand description
An object that represents the timeout configurations for Service Connect.
If idleTimeout
is set to a time that is less than perRequestTimeout
, the connection will close when the idleTimeout
is reached and not the perRequestTimeout
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.idle_timeout_seconds: Option<i32>
The amount of time in seconds a connection will stay active while idle. A value of 0
can be set to disable idleTimeout
.
The idleTimeout
default for HTTP
/HTTP2
/GRPC
is 5 minutes.
The idleTimeout
default for TCP
is 1 hour.
per_request_timeout_seconds: Option<i32>
The amount of time waiting for the upstream to respond with a complete response per request. A value of 0
can be set to disable perRequestTimeout
. perRequestTimeout
can only be set if Service Connect appProtocol
isn't TCP
. Only idleTimeout
is allowed for TCP
appProtocol
.
Implementations§
source§impl TimeoutConfiguration
impl TimeoutConfiguration
sourcepub fn idle_timeout_seconds(&self) -> Option<i32>
pub fn idle_timeout_seconds(&self) -> Option<i32>
The amount of time in seconds a connection will stay active while idle. A value of 0
can be set to disable idleTimeout
.
The idleTimeout
default for HTTP
/HTTP2
/GRPC
is 5 minutes.
The idleTimeout
default for TCP
is 1 hour.
sourcepub fn per_request_timeout_seconds(&self) -> Option<i32>
pub fn per_request_timeout_seconds(&self) -> Option<i32>
The amount of time waiting for the upstream to respond with a complete response per request. A value of 0
can be set to disable perRequestTimeout
. perRequestTimeout
can only be set if Service Connect appProtocol
isn't TCP
. Only idleTimeout
is allowed for TCP
appProtocol
.
source§impl TimeoutConfiguration
impl TimeoutConfiguration
sourcepub fn builder() -> TimeoutConfigurationBuilder
pub fn builder() -> TimeoutConfigurationBuilder
Creates a new builder-style object to manufacture TimeoutConfiguration
.
Trait Implementations§
source§impl Clone for TimeoutConfiguration
impl Clone for TimeoutConfiguration
source§fn clone(&self) -> TimeoutConfiguration
fn clone(&self) -> TimeoutConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimeoutConfiguration
impl Debug for TimeoutConfiguration
source§impl PartialEq for TimeoutConfiguration
impl PartialEq for TimeoutConfiguration
source§fn eq(&self, other: &TimeoutConfiguration) -> bool
fn eq(&self, other: &TimeoutConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TimeoutConfiguration
Auto Trait Implementations§
impl Freeze for TimeoutConfiguration
impl RefUnwindSafe for TimeoutConfiguration
impl Send for TimeoutConfiguration
impl Sync for TimeoutConfiguration
impl Unpin for TimeoutConfiguration
impl UnwindSafe for TimeoutConfiguration
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> 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