Struct conjure_runtime::config::ServiceConfigBuilder
source · [−]pub struct ServiceConfigBuilder(_);Expand description
A builder type for ServiceConfigs.
Implementations
sourceimpl ServiceConfigBuilder
impl ServiceConfigBuilder
sourcepub fn uri(&mut self, uri: Url) -> &mut ServiceConfigBuilder
pub fn uri(&mut self, uri: Url) -> &mut ServiceConfigBuilder
Appends a URI to the URIs list.
sourcepub fn uris(&mut self, uris: Vec<Url, Global>) -> &mut ServiceConfigBuilder
pub fn uris(&mut self, uris: Vec<Url, Global>) -> &mut ServiceConfigBuilder
Sets the URIs list.
sourcepub fn security(
&mut self,
security: SecurityConfig
) -> &mut ServiceConfigBuilder
pub fn security(
&mut self,
security: SecurityConfig
) -> &mut ServiceConfigBuilder
Sets the security configuration.
sourcepub fn proxy(&mut self, proxy: ProxyConfig) -> &mut ServiceConfigBuilder
pub fn proxy(&mut self, proxy: ProxyConfig) -> &mut ServiceConfigBuilder
Sets the proxy configuration.
sourcepub fn connect_timeout(
&mut self,
connect_timeout: Duration
) -> &mut ServiceConfigBuilder
pub fn connect_timeout(
&mut self,
connect_timeout: Duration
) -> &mut ServiceConfigBuilder
Sets the connect timeout.
sourcepub fn read_timeout(
&mut self,
read_timeout: Duration
) -> &mut ServiceConfigBuilder
pub fn read_timeout(
&mut self,
read_timeout: Duration
) -> &mut ServiceConfigBuilder
Sets the read timeout.
sourcepub fn write_timeout(
&mut self,
write_timeout: Duration
) -> &mut ServiceConfigBuilder
pub fn write_timeout(
&mut self,
write_timeout: Duration
) -> &mut ServiceConfigBuilder
Sets the write timeout.
sourcepub fn backoff_slot_size(
&mut self,
backoff_slot_size: Duration
) -> &mut ServiceConfigBuilder
pub fn backoff_slot_size(
&mut self,
backoff_slot_size: Duration
) -> &mut ServiceConfigBuilder
Sets the backoff slot size.
sourcepub fn max_num_retries(
&mut self,
max_num_retries: u32
) -> &mut ServiceConfigBuilder
pub fn max_num_retries(
&mut self,
max_num_retries: u32
) -> &mut ServiceConfigBuilder
Sets the maximum number of retries for failed RPCs.
sourcepub fn build(&self) -> ServiceConfig
pub fn build(&self) -> ServiceConfig
Creates a new ServiceConfig.
Trait Implementations
sourceimpl Default for ServiceConfigBuilder
impl Default for ServiceConfigBuilder
sourcefn default() -> ServiceConfigBuilder
fn default() -> ServiceConfigBuilder
Returns the “default value” for a type. Read more
sourceimpl From<ServiceConfig> for ServiceConfigBuilder
impl From<ServiceConfig> for ServiceConfigBuilder
sourcefn from(config: ServiceConfig) -> ServiceConfigBuilder
fn from(config: ServiceConfig) -> ServiceConfigBuilder
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more