pub trait RouterEventProcessor<REQ, RESP>: Send + Syncwhere
    REQ: Send + Sync + 'static + JsonCodec<REQ> + Display,
    RESP: Send + Sync + 'static + JsonCodec<RESP> + Display,
    RouterEventRequest<REQ>: RouterEventCategoryInfo,
{ fn add_event<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
        index: i32,
        routine: Box<dyn EventListenerAsyncRoutine<RouterEventRequest<REQ>, RouterEventResponse<RESP>>>
    ) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn remove_event<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = BuckyResult<bool>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required Methods

Implementors