wasmcloud_example_httpserver

Trait HttpServerReceiver

Source
pub trait HttpServerReceiver: MessageDispatch + HttpServer {
    // Provided method
    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 Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait { ... }
}
Expand description

HttpServerReceiver receives messages defined in the HttpServer service trait HttpServer is the contract to be implemented by actor

Provided Methods§

Source

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 Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Implementors§