Skip to main content

ValkeyConfigInput

Struct ValkeyConfigInput 

Source
pub struct ValkeyConfigInput {
Show 13 fields pub host: String, pub port: u16, pub database: u32, pub username: Option<SecretString>, pub password: Option<SecretString>, pub key_prefix: String, pub transport_security: ValkeyTransportSecurity, pub tls_trust: ValkeyTlsTrust, pub connection_timeout_millis: u64, pub response_timeout_millis: u64, pub retry_attempts: u32, pub concurrency_limit: u32, pub pipeline_buffer_size: u32,
}
Expand description

Raw Valkey configuration input.

Fields§

§host: String

DNS hostname or IP address without a URI scheme.

§port: u16

TCP port.

§database: u32

Logical database number.

§username: Option<SecretString>

Optional ACL username, treated as sensitive operational metadata.

§password: Option<SecretString>

Optional password or access token.

§key_prefix: String

Prefix prepended to every binary key.

§transport_security: ValkeyTransportSecurity

Transport security policy.

§tls_trust: ValkeyTlsTrust

Certificate roots used when TLS is required.

§connection_timeout_millis: u64

Connection establishment deadline.

§response_timeout_millis: u64

Per-command response deadline.

§retry_attempts: u32

Automatic reconnect attempt count.

§concurrency_limit: u32

Concurrent in-flight command ceiling.

§pipeline_buffer_size: u32

Bounded outbound pipeline queue size.

Trait Implementations§

Source§

impl Debug for ValkeyConfigInput

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ValkeyConfigInput

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.