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§

source

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§

source§

impl HeartbeatInterface for RedisClient

Available on crate feature i-server only.
source§

impl HeartbeatInterface for RedisPool

source§

impl HeartbeatInterface for SentinelClient

Available on crate feature i-server only.
source§

impl HeartbeatInterface for SubscriberClient

Available on crate feature i-server only.