rusk::httpTrait HandleRequest
Source pub trait HandleRequest:
Send
+ Sync
+ 'static {
// Required methods
fn can_handle(&self, request: &MessageRequest) -> bool;
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 MessageRequest,
) -> Pin<Box<dyn Future<Output = Result<ResponseData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn can_handle_rues(&self, request: &RuesDispatchEvent) -> bool;
fn handle_rues<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RuesDispatchEvent,
) -> Pin<Box<dyn Future<Output = Result<ResponseData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}