Trait sfr_server::HomeHandlerTrait

source ·
pub trait HomeHandlerTrait: Send + Sync {
    // Required method
    fn handle_home<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, ResponseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

The trait representing the interface that returns home page.

Required Methods§

source

fn handle_home<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, ResponseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handles the request to get home page.

Implementors§