#[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) -> OperationTimeoutConfig
fn from(cfg: &TimeoutConfig) -> OperationTimeoutConfig
Converts to this type from the input type.
Source§impl From<TimeoutConfig> for OperationTimeoutConfig
impl From<TimeoutConfig> for OperationTimeoutConfig
Source§fn from(cfg: TimeoutConfig) -> OperationTimeoutConfig
fn from(cfg: TimeoutConfig) -> OperationTimeoutConfig
Converts to this type from the input type.
Source§impl PartialEq for OperationTimeoutConfig
impl PartialEq for OperationTimeoutConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
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 moreCreates a shared type from an unshared type.