#[non_exhaustive]pub struct BackendTimeouts {
pub request: Option<Duration>,
pub keepalive: Option<Duration>,
}Expand description
Pool + keepalive timing shared across backend connections.
Fields are #[non_exhaustive] per project convention — connection
tunables grow as new backends land. Default is the Phase-1 Valkey
client’s out-of-box shape (no explicit timeout, no explicit pool
cap; inherits ferriskey defaults).
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.request: Option<Duration>Per-request timeout. None ⇒ backend default.
keepalive: Option<Duration>Idle-connection keepalive interval. None ⇒ backend default.
Trait Implementations§
Source§impl Clone for BackendTimeouts
impl Clone for BackendTimeouts
Source§fn clone(&self) -> BackendTimeouts
fn clone(&self) -> BackendTimeouts
Returns a duplicate 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 BackendTimeouts
impl Debug for BackendTimeouts
Source§impl Default for BackendTimeouts
impl Default for BackendTimeouts
Source§fn default() -> BackendTimeouts
fn default() -> BackendTimeouts
Returns the “default value” for a type. Read more
Source§impl PartialEq for BackendTimeouts
impl PartialEq for BackendTimeouts
impl Eq for BackendTimeouts
impl StructuralPartialEq for BackendTimeouts
Auto Trait Implementations§
impl Freeze for BackendTimeouts
impl RefUnwindSafe for BackendTimeouts
impl Send for BackendTimeouts
impl Sync for BackendTimeouts
impl Unpin for BackendTimeouts
impl UnsafeUnpin for BackendTimeouts
impl UnwindSafe for BackendTimeouts
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