Struct aws_smithy_types::timeout::OperationTimeoutConfig
source · #[non_exhaustive]pub struct OperationTimeoutConfig { /* private fields */ }
Expand description
Configuration subset of TimeoutConfig
for operation timeouts
Implementations§
source§impl OperationTimeoutConfig
impl OperationTimeoutConfig
sourcepub fn operation_timeout(&self) -> Option<Duration>
pub fn operation_timeout(&self) -> Option<Duration>
Returns this config’s operation timeout.
An operation represents the full request/response lifecycle of a call to a service. The operation timeout is a limit on the total amount of time it takes for an operation to be fully serviced, including the time for all retries that may have been attempted for it.
sourcepub fn operation_attempt_timeout(&self) -> Option<Duration>
pub fn operation_attempt_timeout(&self) -> Option<Duration>
Returns this config’s operation attempt timeout.
An operation represents the full request/response lifecycle of a call to a service. When retries are enabled, then this setting makes it possible to set a timeout for individual retry attempts (including the initial attempt) for an operation.
sourcepub fn has_timeouts(&self) -> bool
pub fn has_timeouts(&self) -> bool
Returns true if any of the possible timeouts are set.
Trait Implementations§
source§impl Clone for OperationTimeoutConfig
impl Clone for OperationTimeoutConfig
source§fn clone(&self) -> OperationTimeoutConfig
fn clone(&self) -> OperationTimeoutConfig
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 OperationTimeoutConfig
impl Debug for OperationTimeoutConfig
source§impl From<&TimeoutConfig> for OperationTimeoutConfig
impl From<&TimeoutConfig> for OperationTimeoutConfig
source§fn from(cfg: &TimeoutConfig) -> Self
fn from(cfg: &TimeoutConfig) -> Self
Converts to this type from the input type.
source§impl From<TimeoutConfig> for OperationTimeoutConfig
impl From<TimeoutConfig> for OperationTimeoutConfig
source§fn from(cfg: TimeoutConfig) -> Self
fn from(cfg: TimeoutConfig) -> Self
Converts to this type from the input type.
source§impl PartialEq<OperationTimeoutConfig> for OperationTimeoutConfig
impl PartialEq<OperationTimeoutConfig> for OperationTimeoutConfig
source§fn eq(&self, other: &OperationTimeoutConfig) -> bool
fn eq(&self, other: &OperationTimeoutConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.