[][src]Struct conjure_runtime::config::ServiceConfigBuilder

pub struct ServiceConfigBuilder(_);

A builder type for ServiceConfigs.

Implementations

impl ServiceConfigBuilder[src]

pub fn uri(&mut self, uri: Url) -> &mut ServiceConfigBuilder[src]

Appends a URI to the URIs list.

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

Sets the URIs list.

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

Sets the security configuration.

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

Sets the proxy configuration.

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

Sets the connect timeout.

pub fn read_timeout(
    &mut self,
    read_timeout: Duration
) -> &mut ServiceConfigBuilder
[src]

Sets the read timeout.

pub fn write_timeout(
    &mut self,
    write_timeout: Duration
) -> &mut ServiceConfigBuilder
[src]

Sets the write timeout.

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

Sets the backoff slot size.

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

Sets the maximum number of retries for failed RPCs.

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> Instrument for T[src]

impl<T> Instrument 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,