PingHandler

Trait PingHandler 

Source
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§

Source

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

Source

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,

Send a ping to the remote party

Implementors§