pub trait HeartbeatResponseHandler: Send + Sync {
// Required methods
fn is_acceptable(&self, ctx: &HeartbeatResponseHandlerContext) -> bool;
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut HeartbeatResponseHandlerContext,
) -> Pin<Box<dyn Future<Output = Result<HandleControl>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
HeartbeatResponseHandler
HeartbeatResponseHandler::is_acceptable
returns true if handler can handle incoming HeartbeatResponseHandlerContext
.
HeartbeatResponseHandler::handle
handles all or part of incoming HeartbeatResponseHandlerContext
.