pub struct ExchangeConfig {
pub timeout: Duration,
pub rate_limit_per_second: u32,
pub max_retries: u32,
pub retry_delay: Duration,
pub verbose: bool,
}Fields§
§timeout: Duration§rate_limit_per_second: u32§max_retries: u32§retry_delay: Duration§verbose: boolImplementations§
Source§impl ExchangeConfig
impl ExchangeConfig
pub fn new() -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_rate_limit(self, requests_per_second: u32) -> Self
pub fn with_retries(self, max_retries: u32, delay: Duration) -> Self
pub fn with_verbose(self, verbose: bool) -> Self
Trait Implementations§
Source§impl Clone for ExchangeConfig
impl Clone for ExchangeConfig
Source§fn clone(&self) -> ExchangeConfig
fn clone(&self) -> ExchangeConfig
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 moreSource§impl Debug for ExchangeConfig
impl Debug for ExchangeConfig
Auto Trait Implementations§
impl Freeze for ExchangeConfig
impl RefUnwindSafe for ExchangeConfig
impl Send for ExchangeConfig
impl Sync for ExchangeConfig
impl Unpin for ExchangeConfig
impl UnwindSafe for ExchangeConfig
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