pub struct ValkeyServerConfig {
pub host: String,
pub port: u16,
pub tls: bool,
pub cluster: bool,
pub skip_library_load: bool,
}Expand description
RFC-017 Wave 8 Stage E4 (v0.8.0): Valkey connection parameters
carried on ServerConfig when backend == BackendKind::Valkey.
Mirrors the pre-existing PostgresServerConfig shape. Replaces
the flat host / port / tls / cluster / skip_library_load
fields removed at v0.8.0 in favour of sum-typed nesting.
Not #[non_exhaustive] so downstream tests and consumers can
construct the struct literal directly. Adding fields here is a
v0.y.0 breaking bump; call sites that want to remain insulated can
use ..ValkeyServerConfig::default() in their literal.
Fields§
§host: StringValkey host. Default: "localhost".
port: u16Valkey port. Default: 6379.
tls: boolEnable TLS for Valkey connections.
cluster: boolEnable Valkey cluster mode.
skip_library_load: boolSkip library loading (for tests where TestCluster already loaded it).
Trait Implementations§
Source§impl Clone for ValkeyServerConfig
impl Clone for ValkeyServerConfig
Source§fn clone(&self) -> ValkeyServerConfig
fn clone(&self) -> ValkeyServerConfig
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 ValkeyServerConfig
impl Debug for ValkeyServerConfig
Auto Trait Implementations§
impl Freeze for ValkeyServerConfig
impl RefUnwindSafe for ValkeyServerConfig
impl Send for ValkeyServerConfig
impl Sync for ValkeyServerConfig
impl Unpin for ValkeyServerConfig
impl UnsafeUnpin for ValkeyServerConfig
impl UnwindSafe for ValkeyServerConfig
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more