Trait wasmcloud_example_httpserver::HttpServerReceiver [−][src]
pub trait HttpServerReceiver: MessageDispatch + HttpServer { fn dispatch<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
ctx: &'life1 Context<'life2>,
message: &'life3 Message<'life4>
) -> Pin<Box<dyn Future<Output = Result<Message<'_>, RpcError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: Sync + 'async_trait, { ... } }
Expand description
HttpServerReceiver receives messages defined in the HttpServer service trait HttpServer is the contract to be implemented by actor
Provided methods
fn dispatch<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
ctx: &'life1 Context<'life2>,
message: &'life3 Message<'life4>
) -> Pin<Box<dyn Future<Output = Result<Message<'_>, RpcError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: Sync + 'async_trait,