Crate shuttle_next
source ·Expand description
shuttle_next A batteries-included, WASM-based backend web-framework.
Modules
- HTTP body utilities.
- Error handling model and utilities
- Types and traits for extracting data from requests.
- Async functions that can be used to handle requests.
- A general purpose library of common HTTP types
- Utilities for writing middleware
- Types and traits for generating responses.
- Routing between
Services and handlers. - A
Subscriberfor formatting and loggingtracingdata. - The
tracing-subscriberprelude. - Storage for span data shared by multiple
Layers.
Macros
- Generates a wasm32-wasi module containing an Axum router with your endpoints, which is passed as a hyper::service::Service to a hyper::Server.
Structs
- Errors that can happen when using axum.
- Extractor and response for extensions.
- Represents an HTTP request.
- The router type for composing handlers and services.
Traits
- Extension trait that adds additional methods to
Request. - Extension trait that adds additional methods to
Parts. - An asynchronous function from a
Requestto aResponse. - Extension trait that adds additional methods to any
Service.
Functions
- Run a future to completion on the current thread.
- Deserialize an instance of type
Tfrom an I/O stream of MessagePack. - Returns a new
SubscriberBuilderfor configuring a formatting subscriber.
Type Aliases
- Alias for a type-erased error type.