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 for OperationTimeoutConfig
impl PartialEq 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 ==
.impl StructuralPartialEq for OperationTimeoutConfig
Auto Trait Implementations§
impl Freeze for OperationTimeoutConfig
impl RefUnwindSafe for OperationTimeoutConfig
impl Send for OperationTimeoutConfig
impl Sync for OperationTimeoutConfig
impl Unpin for OperationTimeoutConfig
impl UnwindSafe for OperationTimeoutConfig
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
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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