Struct conjure_runtime::config::ServiceConfig
source · [−]pub struct ServiceConfig { /* private fields */ }Expand description
The configuration for an individual service.
Implementations
sourceimpl ServiceConfig
impl ServiceConfig
sourcepub fn builder() -> ServiceConfigBuilder
pub fn builder() -> ServiceConfigBuilder
Returns a new builder.
sourcepub fn security(&self) -> Option<&SecurityConfig>
pub fn security(&self) -> Option<&SecurityConfig>
Returns the security configuration.
sourcepub fn proxy(&self) -> Option<&ProxyConfig>
pub fn proxy(&self) -> Option<&ProxyConfig>
Returns the proxy configuration.
sourcepub fn connect_timeout(&self) -> Option<Duration>
pub fn connect_timeout(&self) -> Option<Duration>
Returns the connection timeout.
sourcepub fn read_timeout(&self) -> Option<Duration>
pub fn read_timeout(&self) -> Option<Duration>
Returns the read timeout.
sourcepub fn write_timeout(&self) -> Option<Duration>
pub fn write_timeout(&self) -> Option<Duration>
Returns the write timeout.
sourcepub fn backoff_slot_size(&self) -> Option<Duration>
pub fn backoff_slot_size(&self) -> Option<Duration>
Returns the backoff slot size.
sourcepub fn max_num_retries(&self) -> Option<u32>
pub fn max_num_retries(&self) -> Option<u32>
Returns the maximum number of retries for failed RPCs.
Trait Implementations
sourceimpl Clone for ServiceConfig
impl Clone for ServiceConfig
sourcefn clone(&self) -> ServiceConfig
fn clone(&self) -> ServiceConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ServiceConfig
impl Debug for ServiceConfig
sourceimpl Default for ServiceConfig
impl Default for ServiceConfig
sourcefn default() -> ServiceConfig
fn default() -> ServiceConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ServiceConfig where
ServiceConfig: Default,
impl<'de> Deserialize<'de> for ServiceConfig where
ServiceConfig: Default,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ServiceConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ServiceConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<ServiceConfig> for ServiceConfigBuilder
impl From<ServiceConfig> for ServiceConfigBuilder
sourcefn from(config: ServiceConfig) -> ServiceConfigBuilder
fn from(config: ServiceConfig) -> ServiceConfigBuilder
Converts to this type from the input type.
sourceimpl PartialEq<ServiceConfig> for ServiceConfig
impl PartialEq<ServiceConfig> for ServiceConfig
sourcefn eq(&self, other: &ServiceConfig) -> bool
fn eq(&self, other: &ServiceConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl StructuralPartialEq for ServiceConfig
Auto Trait Implementations
impl RefUnwindSafe for ServiceConfig
impl Send for ServiceConfig
impl Sync for ServiceConfig
impl Unpin for ServiceConfig
impl UnwindSafe for ServiceConfig
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