pub struct RetryableErrors;Expand description
Follows the retry strategy recommended by the Cloud Storage service guides.
This policy must be decorated to limit the number of retry attempts and/or the duration of the retry loop.
§Example
use gax::retry_policy::RetryPolicyExt;
use google_cloud_storage::client::Storage;
use std::time::Duration;
let builder = Storage::builder().with_retry_policy(
RetryableErrors
.with_time_limit(Duration::from_secs(60))
.with_attempt_limit(10),
);Trait Implementations§
Source§impl Clone for RetryableErrors
impl Clone for RetryableErrors
Source§fn clone(&self) -> RetryableErrors
fn clone(&self) -> RetryableErrors
Returns a duplicate 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 RetryableErrors
impl Debug for RetryableErrors
impl RetryPolicy for RetryableErrors
Auto Trait Implementations§
impl Freeze for RetryableErrors
impl RefUnwindSafe for RetryableErrors
impl Send for RetryableErrors
impl Sync for RetryableErrors
impl Unpin for RetryableErrors
impl UnwindSafe for RetryableErrors
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§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RetryPolicyExt for Twhere
T: RetryPolicy,
impl<T> RetryPolicyExt for Twhere
T: RetryPolicy,
Source§fn with_time_limit(self, maximum_duration: Duration) -> LimitedElapsedTime<Self>
fn with_time_limit(self, maximum_duration: Duration) -> LimitedElapsedTime<Self>
Decorate a RetryPolicy to limit the total elapsed time in the retry loop. Read more
Source§fn with_attempt_limit(self, maximum_attempts: u32) -> LimitedAttemptCount<Self>
fn with_attempt_limit(self, maximum_attempts: u32) -> LimitedAttemptCount<Self>
Decorate a RetryPolicy to limit the number of retry attempts. Read more