Struct conjure_runtime::config::ServiceConfig
source · pub struct ServiceConfig { /* private fields */ }
Expand description
The configuration for an individual service.
Implementations§
source§impl ServiceConfig
impl ServiceConfig
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§
source§impl Clone for ServiceConfig
impl Clone for ServiceConfig
source§fn clone(&self) -> ServiceConfig
fn clone(&self) -> ServiceConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ServiceConfig
impl Debug for ServiceConfig
source§impl Default for ServiceConfig
impl Default for ServiceConfig
source§fn default() -> ServiceConfig
fn default() -> ServiceConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ServiceConfigwhere
ServiceConfig: Default,
impl<'de> Deserialize<'de> for ServiceConfigwhere
ServiceConfig: Default,
source§fn 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
source§impl PartialEq for ServiceConfig
impl PartialEq for ServiceConfig
source§fn 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 ==
.impl StructuralPartialEq for ServiceConfig
Auto Trait Implementations§
impl Freeze for ServiceConfig
impl RefUnwindSafe for ServiceConfig
impl Send for ServiceConfig
impl Sync for ServiceConfig
impl Unpin for ServiceConfig
impl UnwindSafe for ServiceConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more