pub struct CdnClientBuilder { /* private fields */ }Expand description
Builder for configuring CDN client
Implementations§
Source§impl CdnClientBuilder
impl CdnClientBuilder
Sourcepub fn connect_timeout(self, secs: u64) -> Self
pub fn connect_timeout(self, secs: u64) -> Self
Set connection timeout
Sourcepub fn request_timeout(self, secs: u64) -> Self
pub fn request_timeout(self, secs: u64) -> Self
Set request timeout
Sourcepub fn pool_max_idle_per_host(self, max: usize) -> Self
pub fn pool_max_idle_per_host(self, max: usize) -> Self
Set maximum idle connections per host
Sourcepub fn max_retries(self, retries: u32) -> Self
pub fn max_retries(self, retries: u32) -> Self
Set maximum retries
Sourcepub fn initial_backoff_ms(self, ms: u64) -> Self
pub fn initial_backoff_ms(self, ms: u64) -> Self
Set initial backoff in milliseconds
Sourcepub fn max_backoff_ms(self, ms: u64) -> Self
pub fn max_backoff_ms(self, ms: u64) -> Self
Set maximum backoff in milliseconds
Sourcepub fn backoff_multiplier(self, multiplier: f64) -> Self
pub fn backoff_multiplier(self, multiplier: f64) -> Self
Set backoff multiplier
Sourcepub fn jitter_factor(self, factor: f64) -> Self
pub fn jitter_factor(self, factor: f64) -> Self
Set jitter factor (0.0 to 1.0)
Sourcepub fn user_agent(self, user_agent: impl Into<String>) -> Self
pub fn user_agent(self, user_agent: impl Into<String>) -> Self
Set custom user agent string
Trait Implementations§
Source§impl Clone for CdnClientBuilder
impl Clone for CdnClientBuilder
Source§fn clone(&self) -> CdnClientBuilder
fn clone(&self) -> CdnClientBuilder
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 CdnClientBuilder
impl Debug for CdnClientBuilder
Auto Trait Implementations§
impl Freeze for CdnClientBuilder
impl RefUnwindSafe for CdnClientBuilder
impl Send for CdnClientBuilder
impl Sync for CdnClientBuilder
impl Unpin for CdnClientBuilder
impl UnsafeUnpin for CdnClientBuilder
impl UnwindSafe for CdnClientBuilder
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