Struct mod_redis::test::RedisCluster
source · pub struct RedisCluster { /* private fields */ }
Implementations§
source§impl RedisCluster
impl RedisCluster
sourcepub async fn is_available() -> bool
pub async fn is_available() -> bool
Check whether redis is available to run as a cluster. We look for redis 7.x and later, because we rely on the –cluster-yes option actually working as part of our cluster initialization. It doesn’t work on redis 5.x which is present on rocky8 for example.
pub async fn spawn() -> Result<Self>
pub async fn connection(&self) -> Result<RedisConnection>
Auto Trait Implementations§
impl Freeze for RedisCluster
impl !RefUnwindSafe for RedisCluster
impl Send for RedisCluster
impl Sync for RedisCluster
impl Unpin for RedisCluster
impl !UnwindSafe for RedisCluster
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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