[][src]Struct conjure_runtime_config::ServiceConfigBuilder

pub struct ServiceConfigBuilder(_);

A builder type for ServiceConfigs.

Methods

impl ServiceConfigBuilder[src]

pub fn uris(&mut self, uris: Vec<Url>) -> &mut Self[src]

Sets the URI list.

pub fn security(&mut self, security: SecurityConfig) -> &mut Self[src]

Sets the security configuration.

pub fn connect_timeout(&mut self, connect_timeout: Duration) -> &mut Self[src]

Sets the connect timeout.

pub fn request_timeout(&mut self, request_timeout: Duration) -> &mut Self[src]

Sets the request timeout.

pub fn max_num_retries(&mut self, max_num_retries: u32) -> &mut Self[src]

Sets the maximum retry count.

pub fn backoff_slot_size(&mut self, backoff_slot_size: Duration) -> &mut Self[src]

Sets the backoff slot size.

pub fn failed_url_cooldown(
    &mut self,
    failed_url_cooldown: Duration
) -> &mut Self
[src]

Sets the failed URL cooldown.

pub fn proxy(&mut self, proxy: ProxyConfig) -> &mut Self[src]

Sets the proxy configuration.

pub fn build(&self) -> ServiceConfig[src]

Creates a new ServiceConfig.

Trait Implementations

impl Default for ServiceConfigBuilder[src]

impl From<ServiceConfig> for ServiceConfigBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.