pub struct PeerRpcRetryPolicy {
pub max_attempts: usize,
pub initial_backoff_ms: u64,
pub max_backoff_ms: u64,
}Expand description
Retry limits and exponential backoff bounds for peer requests.
Fields§
§max_attempts: usizeMaximum attempts, including the initial request.
initial_backoff_ms: u64Delay before the first retry.
max_backoff_ms: u64Maximum delay between attempts.
Trait Implementations§
Source§impl Clone for PeerRpcRetryPolicy
impl Clone for PeerRpcRetryPolicy
Source§fn clone(&self) -> PeerRpcRetryPolicy
fn clone(&self) -> PeerRpcRetryPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PeerRpcRetryPolicy
impl Debug for PeerRpcRetryPolicy
Source§impl Default for PeerRpcRetryPolicy
impl Default for PeerRpcRetryPolicy
impl Eq for PeerRpcRetryPolicy
Source§impl PartialEq for PeerRpcRetryPolicy
impl PartialEq for PeerRpcRetryPolicy
impl StructuralPartialEq for PeerRpcRetryPolicy
Auto Trait Implementations§
impl Freeze for PeerRpcRetryPolicy
impl RefUnwindSafe for PeerRpcRetryPolicy
impl Send for PeerRpcRetryPolicy
impl Sync for PeerRpcRetryPolicy
impl Unpin for PeerRpcRetryPolicy
impl UnsafeUnpin for PeerRpcRetryPolicy
impl UnwindSafe for PeerRpcRetryPolicy
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