pub struct RetrySettings {
pub amount: u64,
pub delay: Duration,
}Expand description
Settings for retrying when API rate limit is reached.
Amount and delay are set to zero by default, you will need to change both to enable retrying.
Check different BlockFrost plans and their limits at https://blockfrost.io/#pricing.
Note: You can disable delay between retries with Duration::ZERO.
Fields§
§amount: u64§delay: DurationImplementations§
Trait Implementations§
Source§impl Clone for RetrySettings
impl Clone for RetrySettings
Source§fn clone(&self) -> RetrySettings
fn clone(&self) -> RetrySettings
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetrySettings
impl Debug for RetrySettings
Source§impl Default for RetrySettings
impl Default for RetrySettings
Source§fn default() -> RetrySettings
fn default() -> RetrySettings
Returns the “default value” for a type. Read more
Source§impl Hash for RetrySettings
impl Hash for RetrySettings
Source§impl Ord for RetrySettings
impl Ord for RetrySettings
Source§fn cmp(&self, other: &RetrySettings) -> Ordering
fn cmp(&self, other: &RetrySettings) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RetrySettings
impl PartialEq for RetrySettings
Source§impl PartialOrd for RetrySettings
impl PartialOrd for RetrySettings
impl Copy for RetrySettings
impl Eq for RetrySettings
impl StructuralPartialEq for RetrySettings
Auto Trait Implementations§
impl Freeze for RetrySettings
impl RefUnwindSafe for RetrySettings
impl Send for RetrySettings
impl Sync for RetrySettings
impl Unpin for RetrySettings
impl UnwindSafe for RetrySettings
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.