Skip to main content

HeartbeatInterface

Trait HeartbeatInterface 

Source
pub trait HeartbeatInterface: ClientLike {
    // Provided method
    fn enable_heartbeat(
        &self,
        interval: Duration,
        break_on_error: bool,
    ) -> impl Future<Output = FredResult<()>> + Send { ... }
}
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 = FredResult<()>> + Send

Return a future that will ping the server on an interval.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl HeartbeatInterface for Client

Available on crate feature i-server only.
Source§

impl HeartbeatInterface for Pool

Source§

impl HeartbeatInterface for SentinelClient

Available on crate feature i-server only.
Source§

impl HeartbeatInterface for SubscriberClient

Available on crate feature i-server only.