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§
Sourcefn handle_home(
&self,
) -> impl Future<Output = Result<Vec<u8>, ResponseError>> + Send
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".