Enum aws_sdk_kms::config::retry::ReconnectMode
source · pub enum ReconnectMode {
ReconnectOnTransientError,
ReuseAllConnections,
}
Expand description
Mode for connection re-establishment
By default, when a transient error is encountered, the connection in use will be poisoned. This
behavior can be disabled by setting ReconnectMode::ReuseAllConnections
instead.
Variants§
ReconnectOnTransientError
Reconnect on ErrorKind::TransientError
ReuseAllConnections
Disable reconnect on error
When this setting is applied, 503s, timeouts, and other transient errors will not lead to a new connection being established unless the connection is closed by the remote.
Trait Implementations§
source§impl Clone for ReconnectMode
impl Clone for ReconnectMode
source§fn clone(&self) -> ReconnectMode
fn clone(&self) -> ReconnectMode
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 ReconnectMode
impl Debug for ReconnectMode
source§impl PartialEq for ReconnectMode
impl PartialEq for ReconnectMode
source§fn eq(&self, other: &ReconnectMode) -> bool
fn eq(&self, other: &ReconnectMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Storable for ReconnectMode
impl Storable for ReconnectMode
§type Storer = StoreReplace<ReconnectMode>
type Storer = StoreReplace<ReconnectMode>
Specify how an item is stored in the config bag, e.g.
StoreReplace
and StoreAppend
impl Copy for ReconnectMode
impl StructuralPartialEq for ReconnectMode
Auto Trait Implementations§
impl Freeze for ReconnectMode
impl RefUnwindSafe for ReconnectMode
impl Send for ReconnectMode
impl Sync for ReconnectMode
impl Unpin for ReconnectMode
impl UnwindSafe for ReconnectMode
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> 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>
Creates a shared type from an unshared type.