[−][src]Struct conjure_runtime_config::ServiceConfigBuilder
A builder type for ServiceConfig
s.
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]
&mut self,
failed_url_cooldown: Duration
) -> &mut Self
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]
fn default() -> ServiceConfigBuilder
[src]
impl From<ServiceConfig> for ServiceConfigBuilder
[src]
fn from(config: ServiceConfig) -> ServiceConfigBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ServiceConfigBuilder
impl Send for ServiceConfigBuilder
impl Sync for ServiceConfigBuilder
impl Unpin for ServiceConfigBuilder
impl UnwindSafe for ServiceConfigBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,