pub struct ShardedConfig {
pub servers: Vec<SocketAddr>,
pub pool_size: usize,
pub connect_timeout_ms: u64,
pub tls_server_name: Option<String>,
}Expand description
Configuration for a ketama-sharded client.
Fields§
§servers: Vec<SocketAddr>List of independent Memcache server addresses.
pool_size: usizeNumber of connections per server (default: 1).
connect_timeout_ms: u64Connect timeout in milliseconds. 0 means no timeout.
tls_server_name: Option<String>TLS server name (SNI) for outbound connections. None means plain TCP.
Auto Trait Implementations§
impl Freeze for ShardedConfig
impl RefUnwindSafe for ShardedConfig
impl Send for ShardedConfig
impl Sync for ShardedConfig
impl Unpin for ShardedConfig
impl UnsafeUnpin for ShardedConfig
impl UnwindSafe for ShardedConfig
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