Skip to main content

GraphHandler

Trait GraphHandler 

Source
pub trait GraphHandler: CallbackHandler {
    // Required method
    fn on_graph_request<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 GraphRequest,
    ) -> Pin<Box<dyn Future<Output = Result<GraphResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Graph API 处理器 trait

Required Methods§

Source

fn on_graph_request<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 GraphRequest, ) -> Pin<Box<dyn Future<Output = Result<GraphResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

处理 Graph 请求

Implementors§