Struct conjure_runtime::config::ServicesConfigBuilder
source · [−]pub struct ServicesConfigBuilder(_);Expand description
A builder type for ServiceConfig.
Implementations
sourceimpl ServicesConfigBuilder
impl ServicesConfigBuilder
sourcepub fn service(
&mut self,
name: &str,
config: ServiceConfig
) -> &mut ServicesConfigBuilder
pub fn service(
&mut self,
name: &str,
config: ServiceConfig
) -> &mut ServicesConfigBuilder
Adds a service to the builder.
sourcepub fn security(
&mut self,
security: SecurityConfig
) -> &mut ServicesConfigBuilder
pub fn security(
&mut self,
security: SecurityConfig
) -> &mut ServicesConfigBuilder
Sets the security configuration.
sourcepub fn proxy(&mut self, proxy: ProxyConfig) -> &mut ServicesConfigBuilder
pub fn proxy(&mut self, proxy: ProxyConfig) -> &mut ServicesConfigBuilder
Sets the proxy configuration.
sourcepub fn connect_timeout(
&mut self,
connect_timeout: Duration
) -> &mut ServicesConfigBuilder
pub fn connect_timeout(
&mut self,
connect_timeout: Duration
) -> &mut ServicesConfigBuilder
Sets the connect timeout.
sourcepub fn read_timeout(
&mut self,
read_timeout: Duration
) -> &mut ServicesConfigBuilder
pub fn read_timeout(
&mut self,
read_timeout: Duration
) -> &mut ServicesConfigBuilder
Sets the read timeout.
sourcepub fn write_timeout(
&mut self,
write_timeout: Duration
) -> &mut ServicesConfigBuilder
pub fn write_timeout(
&mut self,
write_timeout: Duration
) -> &mut ServicesConfigBuilder
Sets the write timeout.
sourcepub fn backoff_slot_size(
&mut self,
backoff_slot_size: Duration
) -> &mut ServicesConfigBuilder
pub fn backoff_slot_size(
&mut self,
backoff_slot_size: Duration
) -> &mut ServicesConfigBuilder
Sets the backoff slot size.
sourcepub fn build(&self) -> ServicesConfig
pub fn build(&self) -> ServicesConfig
Creates a new ServicesConfig.
Trait Implementations
sourceimpl Default for ServicesConfigBuilder
impl Default for ServicesConfigBuilder
sourcefn default() -> ServicesConfigBuilder
fn default() -> ServicesConfigBuilder
Returns the “default value” for a type. Read more
sourceimpl From<ServicesConfig> for ServicesConfigBuilder
impl From<ServicesConfig> for ServicesConfigBuilder
sourcefn from(config: ServicesConfig) -> ServicesConfigBuilder
fn from(config: ServicesConfig) -> ServicesConfigBuilder
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ServicesConfigBuilder
impl Send for ServicesConfigBuilder
impl Sync for ServicesConfigBuilder
impl Unpin for ServicesConfigBuilder
impl UnwindSafe for ServicesConfigBuilder
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