Struct condow_rusoto::config::ClientRetryWrapper
source · [−]pub struct ClientRetryWrapper<C> { /* private fields */ }
Expand description
Wraps any CondowClient to add retry behaviour
If a RetryConfig is present it will be applied to perform retries otherwise the client will be called directly without any additional logic.
The methods need a [Reporter] which is used to signal retries and broken streams.
Implementations
sourceimpl<C> ClientRetryWrapper<C> where
C: CondowClient,
impl<C> ClientRetryWrapper<C> where
C: CondowClient,
pub fn new(client: C, config: Option<RetryConfig>) -> ClientRetryWrapper<C>
pub async fn get_size<P>(
&'_ self,
location: <C as CondowClient>::Location,
probe: &'_ P
) -> Result<u64, CondowError> where
P: Probe + Clone,
pub fn download<P>(
&self,
location: <C as CondowClient>::Location,
range: InclusiveRange,
probe: P
) -> impl Future<Output = Result<BytesStream, CondowError>> + Send + 'static where
P: Probe + Clone,
sourcepub fn inner_client(&self) -> &C
pub fn inner_client(&self) -> &C
Returns the inner CondowClient
Trait Implementations
sourceimpl<C> Clone for ClientRetryWrapper<C> where
C: Clone,
impl<C> Clone for ClientRetryWrapper<C> where
C: Clone,
sourcefn clone(&self) -> ClientRetryWrapper<C>
fn clone(&self) -> ClientRetryWrapper<C>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<C> RefUnwindSafe for ClientRetryWrapper<C> where
C: RefUnwindSafe,
impl<C> Send for ClientRetryWrapper<C> where
C: Send + Sync,
impl<C> Sync for ClientRetryWrapper<C> where
C: Send + Sync,
impl<C> Unpin for ClientRetryWrapper<C>
impl<C> UnwindSafe for ClientRetryWrapper<C> where
C: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more