azservicebus 0.25.1

An unofficial AMQP 1.0 rust client for Azure Service Bus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! The type of approach to apply when calculating the delay

/// The type of approach to apply when calculating the delay
/// between retry attempts.
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum ServiceBusRetryMode {
    /// Retry attempts happen at fixed intervals; each delay is a consistent duration.
    Fixed,

    /// Retry attempts will delay based on a backoff strategy, where each attempt will increase the duration that it waits before retrying.
    Exponential,
}

impl Default for ServiceBusRetryMode {
    fn default() -> Self {
        Self::Exponential
    }
}