Crate rocket4

source ·

Modules

Application configuration and configuration parameter retrieval.
Types and traits for handling incoming body data.
Types representing various errors that can occur in a Rocket application.
Fairings: callbacks at attach, launch, request, and response time.
Types and traits for request and error handlers and their return values.
Types that map to concepts in HTTP.
Structures for local dispatching of requests, primarily for testing.
Success, failure, and forward handling.
Types and traits for request parsing and handling.
Types and traits to build and send responses.

Macros

Generates a Vec of Catchers from a set of catcher paths.
Generates a Vec of Routes from a set of route paths.
Type safe generation of route URIs.

Structs

An error catching route.
Structure for Rocket application configuration.
Type representing the data in the body of an incoming request.
The type of an incoming web request.
A response, as returned by types implementing Responder.
The main Rocket type: used to mount routes and catchers and launch the application.
A route: a method, its handler, path, rank, and format/media type.
Request guard to retrieve managed state.
Information generated by the catch attribute during codegen.
Information generated by the route attribute during codegen.

Enums

An enum representing success (Success), failure (Failure), or forwarding (Forward).

Traits

Trait implemented by types that can handle requests.

Functions

Alias to Rocket::custom(). Creates a new instance of Rocket with a custom configuration.
Alias to Rocket::ignite() Creates a new instance of Rocket.

Type Definitions

The type of an error handler.

Attribute Macros

Attribute to generate a Catcher and associated metadata.
Attribute to generate a Route and associated metadata.
Attribute to generate a Route and associated metadata.
Attribute to generate a Route and associated metadata.
Attribute to generate a Route and associated metadata.
Attribute to generate a Route and associated metadata.
Attribute to generate a Route and associated metadata.
Attribute to generate a Route and associated metadata.
Attribute to generate a Route and associated metadata.

Derive Macros

Derive for the FromForm trait.
Derive for the FromFormValue trait.
Derive for the Responder trait.
Derive for the UriDisplay<Path> trait.
Derive for the UriDisplay<Query> trait.