[−][src]Struct conjure_runtime::config::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]
&mut self,
security: SecurityConfig
) -> &mut ServiceConfigBuilder
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]
&mut self,
connect_timeout: Duration
) -> &mut ServiceConfigBuilder
Sets the connect timeout.
pub fn read_timeout(
&mut self,
read_timeout: Duration
) -> &mut ServiceConfigBuilder[src]
&mut self,
read_timeout: Duration
) -> &mut ServiceConfigBuilder
Sets the read timeout.
pub fn write_timeout(
&mut self,
write_timeout: Duration
) -> &mut ServiceConfigBuilder[src]
&mut self,
write_timeout: Duration
) -> &mut ServiceConfigBuilder
Sets the write timeout.
pub fn backoff_slot_size(
&mut self,
backoff_slot_size: Duration
) -> &mut ServiceConfigBuilder[src]
&mut self,
backoff_slot_size: Duration
) -> &mut ServiceConfigBuilder
Sets the backoff slot size.
pub fn max_num_retries(
&mut self,
max_num_retries: u32
) -> &mut ServiceConfigBuilder[src]
&mut self,
max_num_retries: u32
) -> &mut ServiceConfigBuilder
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]
pub fn default() -> ServiceConfigBuilder[src]
impl From<ServiceConfig> for ServiceConfigBuilder[src]
pub fn from(config: ServiceConfig) -> ServiceConfigBuilder[src]
Auto Trait Implementations
impl RefUnwindSafe for ServiceConfigBuilder[src]
impl Send for ServiceConfigBuilder[src]
impl Sync for ServiceConfigBuilder[src]
impl Unpin for ServiceConfigBuilder[src]
impl UnwindSafe for ServiceConfigBuilder[src]
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,