pub trait HandlerP2p: Sync + Send {
// Required method
fn p2p(&self) -> P2pPtr;
// Provided method
fn p2p_get_info<'life0, 'async_trait>(
&'life0 self,
id: u16,
_params: JsonValue,
) -> Pin<Box<dyn Future<Output = JsonResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}