#[non_exhaustive]pub struct BackendConfig {
pub connection: BackendConnection,
pub timeouts: BackendTimeouts,
pub retry: BackendRetry,
}Expand description
Configuration passed to ValkeyBackend::connect (and, later, to
other backend connect constructors). Carries the connection
details + shared timing/retry policy. Replaces the Valkey-specific
fields today on WorkerConfig (RFC-012 §5.1 migration plan).
BackendConfig is the replacement target for WorkerConfig’s
host / port / tls / cluster fields. The full migration
lands across Stage 1a (type introduction) and Stage 1c
(WorkerConfig forwarding); worker-policy fields (lease TTL,
claim poll interval, capability set) stay on WorkerConfig.
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.connection: BackendConnection§timeouts: BackendTimeouts§retry: BackendRetryImplementations§
Trait Implementations§
Source§impl Clone for BackendConfig
impl Clone for BackendConfig
Source§fn clone(&self) -> BackendConfig
fn clone(&self) -> BackendConfig
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 BackendConfig
impl Debug for BackendConfig
Source§impl PartialEq for BackendConfig
impl PartialEq for BackendConfig
impl Eq for BackendConfig
impl StructuralPartialEq for BackendConfig
Auto Trait Implementations§
impl Freeze for BackendConfig
impl RefUnwindSafe for BackendConfig
impl Send for BackendConfig
impl Sync for BackendConfig
impl Unpin for BackendConfig
impl UnsafeUnpin for BackendConfig
impl UnwindSafe for BackendConfig
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