Re-exports§
pub use context::basic_context::BasicContext;
Modules§
Macros§
Structs§
- App, the main component of Thruster. The App is the entry point for your application and handles all incomming requests. Apps are also composeable, that is, via the
subapp
method, you can use all of the methods and middlewares contained within an app as a subset of your app’s routes. - The request object is the default request object provied by Thruster. If a different server is used, such as Hyper, then you’ll need to reference that server’s “request” documentation instead.
- A reusable
Pin<Box<dyn Future<Output = T> + Send>>
.
Traits§
- A
Context
is what will be passed between functions in the middleware for the defined routes of Thruster. Since a new context is made for each incomming request, it’s important to keep this struct lean and quick, as well as thecontext_generator
associated with it.