#[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
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.connection: BackendConnection§timeouts: BackendTimeouts§retry: BackendRetryImplementations§
Source§impl BackendConfig
impl BackendConfig
Sourcepub fn new(connection: BackendConnection) -> Self
pub fn new(connection: BackendConnection) -> Self
Construct a BackendConfig directly from a
BackendConnection variant, with default timeouts + retry.
Provided so external consumers have an explicit constructor
against this #[non_exhaustive] struct; for the common paths
prefer Self::valkey / Self::postgres.
Trait Implementations§
Source§impl Clone for BackendConfig
impl Clone for BackendConfig
Source§fn clone(&self) -> BackendConfig
fn clone(&self) -> BackendConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more