pub trait PingHandler: Send + Sync {
// Required methods
fn handle_ping<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 ServerInitiatedContext,
) -> Pin<Box<dyn Future<Output = Result<PingResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn send_ping<'life0, 'life1, 'async_trait>(
&'life0 self,
target: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<PingResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Handler for bidirectional ping requests
Required Methods§
Sourcefn handle_ping<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 ServerInitiatedContext,
) -> Pin<Box<dyn Future<Output = Result<PingResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_ping<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 ServerInitiatedContext,
) -> Pin<Box<dyn Future<Output = Result<PingResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle a ping request