Trait RelayerApiTrait

Source
pub trait RelayerApiTrait<J, RR, TR, NR, NFR, SR, TCR, PR>: Send + Sync{
    // Required methods
    fn handle_request<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: Request,
        state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
    ) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn process_request<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: Request,
        state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_send_transaction<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: Request,
        state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_get_transaction<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: Request,
        state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_get_relayer_status<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: Request,
        state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_sign_transaction<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: Request,
        state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_get_relayer_info<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: Request,
        state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn handle_request<'life0, 'life1, 'async_trait>( &'life0 self, request: Request, state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>, ) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn process_request<'life0, 'life1, 'async_trait>( &'life0 self, request: Request, state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>, ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn handle_send_transaction<'life0, 'life1, 'async_trait>( &'life0 self, request: Request, state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>, ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn handle_get_transaction<'life0, 'life1, 'async_trait>( &'life0 self, request: Request, state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>, ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn handle_get_relayer_status<'life0, 'life1, 'async_trait>( &'life0 self, request: Request, state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>, ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn handle_sign_transaction<'life0, 'life1, 'async_trait>( &'life0 self, request: Request, state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>, ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn handle_get_relayer_info<'life0, 'life1, 'async_trait>( &'life0 self, request: Request, state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>, ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

Source§

impl<J, RR, TR, NR, NFR, SR, TCR, PR> RelayerApiTrait<J, RR, TR, NR, NFR, SR, TCR, PR> for RelayerApi