Trait RelayerApiTrait

Source
pub trait RelayerApiTrait {
    // Required methods
    fn handle_request<'life0, 'life1, 'async_trait, J>(
        &'life0 self,
        request: Request,
        state: &'life1 ThinData<AppState<J>>,
    ) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
       where J: 'async_trait + JobProducerTrait + 'static,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn process_request<'life0, 'life1, 'async_trait, J>(
        &'life0 self,
        request: Request,
        state: &'life1 ThinData<AppState<J>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
       where J: 'async_trait + JobProducerTrait + 'static,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_send_transaction<'life0, 'life1, 'async_trait, J>(
        &'life0 self,
        request: Request,
        state: &'life1 ThinData<AppState<J>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
       where J: 'async_trait + JobProducerTrait + 'static,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn handle_request<'life0, 'life1, 'async_trait, J>( &'life0 self, request: Request, state: &'life1 ThinData<AppState<J>>, ) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where J: 'async_trait + JobProducerTrait + 'static, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn process_request<'life0, 'life1, 'async_trait, J>( &'life0 self, request: Request, state: &'life1 ThinData<AppState<J>>, ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where J: 'async_trait + JobProducerTrait + 'static, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn handle_send_transaction<'life0, 'life1, 'async_trait, J>( &'life0 self, request: Request, state: &'life1 ThinData<AppState<J>>, ) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where J: 'async_trait + JobProducerTrait + 'static, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§