Crate thruster

Source

Re-exports§

pub use context::basic_context::BasicContext;

Modules§

context
errors
middleware
parser
testing

Macros§

async_middleware
generate_tuples
m
map_try
pinbox

Structs§

App
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.
Http
Request
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.
Response
ReusableBoxFuture
A reusable Pin<Box<dyn Future<Output = T> + Send>>.
Server

Traits§

Context
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 the context_generator associated with it.
ContextState
RequestWithParams
Testable
ThrusterRequest
ThrusterServer

Functions§

decode
encode

Type Aliases§

MiddlewareFn
MiddlewareNext
MiddlewareResult
MiddlewareReturnValue

Attribute Macros§

context_state
json_request
middleware
middleware_fn