pub struct SentinelEndpoint {
pub host: String,
pub port: u16,
}Expand description
Sentinel endpoint configuration
Fields§
§host: StringSentinel host
port: u16Sentinel port
Implementations§
Source§impl SentinelEndpoint
impl SentinelEndpoint
Sourcepub fn from_address(addr: &str) -> RedisResult<Self>
pub fn from_address(addr: &str) -> RedisResult<Self>
Trait Implementations§
Source§impl Clone for SentinelEndpoint
impl Clone for SentinelEndpoint
Source§fn clone(&self) -> SentinelEndpoint
fn clone(&self) -> SentinelEndpoint
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 moreAuto Trait Implementations§
impl Freeze for SentinelEndpoint
impl RefUnwindSafe for SentinelEndpoint
impl Send for SentinelEndpoint
impl Sync for SentinelEndpoint
impl Unpin for SentinelEndpoint
impl UnwindSafe for SentinelEndpoint
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