#[non_exhaustive]pub struct KvConfig {
pub on_demand_connect: bool,
pub enable_error_map: bool,
pub enable_mutation_tokens: bool,
pub enable_server_durations: bool,
pub num_connections: usize,
pub connect_timeout: Duration,
pub connect_throttle_timeout: Duration,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.on_demand_connect: bool§enable_error_map: bool§enable_mutation_tokens: bool§enable_server_durations: bool§num_connections: usize§connect_timeout: Duration§connect_throttle_timeout: DurationImplementations§
Source§impl KvConfig
impl KvConfig
pub fn new() -> Self
pub fn on_demand_connect(self, on_demand_connect: bool) -> Self
pub fn enable_error_map(self, enable: bool) -> Self
pub fn enable_mutation_tokens(self, enable: bool) -> Self
pub fn enable_server_durations(self, enable: bool) -> Self
pub fn connect_timeout(self, connect_timeout: Duration) -> Self
pub fn connect_throttle_timeout( self, connect_throttle_timeout: Duration, ) -> Self
pub fn num_connections(self, num: usize) -> Self
Trait Implementations§
impl StructuralPartialEq for KvConfig
Auto Trait Implementations§
impl Freeze for KvConfig
impl RefUnwindSafe for KvConfig
impl Send for KvConfig
impl Sync for KvConfig
impl Unpin for KvConfig
impl UnsafeUnpin for KvConfig
impl UnwindSafe for KvConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.