pub struct SentinelConnectionInfo {
pub name: String,
pub master_name: String,
pub master_host: String,
pub master_port: u16,
pub replica_ports: Vec<u16>,
pub sentinels: Vec<SentinelInfo>,
pub password: Option<String>,
pub network: String,
pub containers: Vec<String>,
}
Expand description
Connection information for Redis Sentinel
Fields§
§name: String
Name of the Sentinel deployment
master_name: String
Master name used by Sentinel
master_host: String
Host address of the Redis master
master_port: u16
Port of the Redis master
replica_ports: Vec<u16>
Ports of the Redis replica instances
sentinels: Vec<SentinelInfo>
Information about Sentinel instances
password: Option<String>
Redis password if authentication is enabled
network: String
Docker network name
containers: Vec<String>
Names of all containers in the cluster
Implementations§
Source§impl SentinelConnectionInfo
impl SentinelConnectionInfo
Sourcepub fn master_url(&self) -> String
pub fn master_url(&self) -> String
Get Redis URL for direct master connection
Sourcepub fn sentinel_urls(&self) -> Vec<String>
pub fn sentinel_urls(&self) -> Vec<String>
Get Sentinel URLs for Sentinel-aware clients
Auto Trait Implementations§
impl Freeze for SentinelConnectionInfo
impl RefUnwindSafe for SentinelConnectionInfo
impl Send for SentinelConnectionInfo
impl Sync for SentinelConnectionInfo
impl Unpin for SentinelConnectionInfo
impl UnwindSafe for SentinelConnectionInfo
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