pub trait RedisInterface: Send + Sync {
type RedisConnection<'a>: ClientLike + KeysInterface
where Self: 'a;
// Required method
fn redis(&self) -> &Self::RedisConnection<'_>;
}
Required Associated Types§
type RedisConnection<'a>: ClientLike + KeysInterface where Self: 'a
Required Methods§
fn redis(&self) -> &Self::RedisConnection<'_>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.