Struct azeventhubs::EventHubsRetryOptions
source · pub struct EventHubsRetryOptions {
pub max_retries: MaxRetries,
pub delay: Duration,
pub maximum_delay: Duration,
pub try_timeout: Duration,
pub mode: EventHubsRetryMode,
}Expand description
The set of options that can be specified to influence how retry attempts are made, and a failure is eligible to be retried.
Fields§
§max_retries: MaxRetriesThe maximum number of retry attempts before considering the associated operation to have failed
delay: DurationThe delay or back-off factor to apply between retry attempts
maximum_delay: DurationThe maximum delay to allow between retry attempts
try_timeout: DurationThe maximum duration to wait for an operation, per attempt
mode: EventHubsRetryModeThe approach to use for calculating retry delays
The default retry mode is EventHubsRetryMode::Exponential
Trait Implementations§
source§impl Clone for EventHubsRetryOptions
impl Clone for EventHubsRetryOptions
source§fn clone(&self) -> EventHubsRetryOptions
fn clone(&self) -> EventHubsRetryOptions
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 EventHubsRetryOptions
impl Debug for EventHubsRetryOptions
source§impl Default for EventHubsRetryOptions
impl Default for EventHubsRetryOptions
source§impl From<EventHubsRetryOptions> for BasicRetryPolicy
impl From<EventHubsRetryOptions> for BasicRetryPolicy
source§fn from(options: EventHubsRetryOptions) -> Self
fn from(options: EventHubsRetryOptions) -> Self
Converts to this type from the input type.
source§impl Hash for EventHubsRetryOptions
impl Hash for EventHubsRetryOptions
source§impl PartialEq for EventHubsRetryOptions
impl PartialEq for EventHubsRetryOptions
source§fn eq(&self, other: &EventHubsRetryOptions) -> bool
fn eq(&self, other: &EventHubsRetryOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for EventHubsRetryOptions
impl StructuralEq for EventHubsRetryOptions
impl StructuralPartialEq for EventHubsRetryOptions
Auto Trait Implementations§
impl RefUnwindSafe for EventHubsRetryOptions
impl Send for EventHubsRetryOptions
impl Sync for EventHubsRetryOptions
impl Unpin for EventHubsRetryOptions
impl UnwindSafe for EventHubsRetryOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.