pub trait NdnEventHandler: Send + Sync {
// Required methods
fn on_newly_interest<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
stack: &'life1 Stack,
interest: &'life2 Interest,
from: &'life3 Channel
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn on_unknown_piece_data(
&self,
stack: &Stack,
piece: &PieceData,
from: &Channel
) -> BuckyResult<DownloadSession>;
}