Skip to main content

HomeHandlerTrait

Trait HomeHandlerTrait 

Source
pub trait HomeHandlerTrait: Send + Sync {
    // Required method
    fn handle_home(
        &self,
    ) -> impl Future<Output = Result<Vec<u8>, ResponseError>> + Send;
}
Expand description

The trait representing the interface that returns home page.

Required Methods§

Source

fn handle_home( &self, ) -> impl Future<Output = Result<Vec<u8>, ResponseError>> + Send

Handles the request to get home page.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§