pub trait AppHandler {
    fn app_request<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        node_id: &'life1 Id,
        request_id: u32,
        deadline: Instant,
        request: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; fn app_request_failed<'life0, 'life1, 'async_trait>(
        &'life0 self,
        node_id: &'life1 Id,
        request_id: u32
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn app_response<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        node_id: &'life1 Id,
        request_id: u32,
        response: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; fn app_gossip<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        node_id: &'life1 Id,
        msg: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }
Expand description

ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/snow/engine/common#AppHandler

Required Methods

Implementors