Skip to main content

thruster_server/
thruster_server.rs

1use thruster_app::app::App;
2use thruster_core::context::Context;
3use thruster_core::request::RequestWithParams;
4
5pub trait ThrusterServer {
6  type Context: Context + Send;
7  type Response: Send;
8  type Request: RequestWithParams + Send;
9
10  fn new(_: App<Self::Request, Self::Context>) -> Self;
11  fn start(self, host: &str, port: u16);
12}