azeventhubs 0.20.0

An unofficial AMQP 1.0 rust client for Azure Event Hubs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// The type of approach to apply when calculating the delay
/// between retry attempts.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum EventHubsRetryMode {
    /// Retry attempts happen at fixed intervals; each delay is a consistent duration
    Fixed,

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

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