pub struct PolitenessConfig {
pub delay_ms: u64,
pub retries: u32,
pub timeout_secs: u64,
}Expand description
Network politeness knobs.
Fields§
§delay_ms: u64Minimum delay between requests per host (ms).
retries: u32Maximum retry attempts on transient errors.
timeout_secs: u64Per-request timeout (seconds).
Trait Implementations§
Source§impl Clone for PolitenessConfig
impl Clone for PolitenessConfig
Source§fn clone(&self) -> PolitenessConfig
fn clone(&self) -> PolitenessConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PolitenessConfig
impl RefUnwindSafe for PolitenessConfig
impl Send for PolitenessConfig
impl Sync for PolitenessConfig
impl Unpin for PolitenessConfig
impl UnsafeUnpin for PolitenessConfig
impl UnwindSafe for PolitenessConfig
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