pub enum RedisConnectionAddr {
Tcp {
host: String,
port: u16,
tls: bool,
},
Unix {
path: PathBuf,
},
}
Variants§
Trait Implementations§
Source§impl Clone for RedisConnectionAddr
impl Clone for RedisConnectionAddr
Source§fn clone(&self) -> RedisConnectionAddr
fn clone(&self) -> RedisConnectionAddr
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 RedisConnectionAddr
impl Debug for RedisConnectionAddr
Source§impl Ord for RedisConnectionAddr
impl Ord for RedisConnectionAddr
Source§fn cmp(&self, other: &RedisConnectionAddr) -> Ordering
fn cmp(&self, other: &RedisConnectionAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RedisConnectionAddr
impl PartialEq for RedisConnectionAddr
Source§impl PartialOrd for RedisConnectionAddr
impl PartialOrd for RedisConnectionAddr
impl Eq for RedisConnectionAddr
impl StructuralPartialEq for RedisConnectionAddr
Auto Trait Implementations§
impl Freeze for RedisConnectionAddr
impl RefUnwindSafe for RedisConnectionAddr
impl Send for RedisConnectionAddr
impl Sync for RedisConnectionAddr
impl Unpin for RedisConnectionAddr
impl UnwindSafe for RedisConnectionAddr
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> 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