pub trait Service:
Send
+ Sync
+ 'static {
// Required method
fn handle(
&self,
req: Request,
stream: Option<TcpStream>,
) -> Result<ServiceResult>;
}Expand description
The trait representing the user’s core application logic.