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§
Sourcefn enable_heartbeat(
&self,
interval: Duration,
break_on_error: bool,
) -> impl Future<Output = FredResult<()>> + Send
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§
impl HeartbeatInterface for Client
Available on crate feature
i-server only.impl HeartbeatInterface for Pool
impl HeartbeatInterface for SentinelClient
Available on crate feature
i-server only.impl HeartbeatInterface for SubscriberClient
Available on crate feature
i-server only.