Trait fred::interfaces::HeartbeatInterface
source · pub trait HeartbeatInterface: ClientLike {
// Provided method
fn enable_heartbeat(
&self,
interval: Duration,
break_on_error: bool,
) -> impl Future<Output = RedisResult<()>> { ... }
}Expand description
Functions that provide a connection heartbeat interface.
Provided Methods§
sourcefn enable_heartbeat(
&self,
interval: Duration,
break_on_error: bool,
) -> impl Future<Output = RedisResult<()>>
fn enable_heartbeat( &self, interval: Duration, break_on_error: bool, ) -> impl Future<Output = RedisResult<()>>
Return a future that will ping the server on an interval.
Object Safety§
This trait is not object safe.
Implementors§
impl HeartbeatInterface for RedisClient
Available on crate feature
i-server only.impl HeartbeatInterface for RedisPool
impl HeartbeatInterface for SentinelClient
Available on crate feature
i-server only.impl HeartbeatInterface for SubscriberClient
Available on crate feature
i-server only.