Enum bonsaidb::keystorage::s3::aws_sdk_s3::config::retry::ReconnectMode
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§
§impl Clone for ReconnectMode
impl Clone for ReconnectMode
§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 more§impl Debug for ReconnectMode
impl Debug for ReconnectMode
§impl PartialEq for ReconnectMode
impl PartialEq for ReconnectMode
§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 ==
.§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 RefUnwindSafe for ReconnectMode
impl Send for ReconnectMode
impl Sync for ReconnectMode
impl Unpin for ReconnectMode
impl UnwindSafe for ReconnectMode
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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