Crate shuttle_next

Crate shuttle_next 

Source
Expand description

shuttle_next A batteries-included, WASM-based backend web-framework.

Modules§

body
HTTP body utilities.
error_handling
Error handling model and utilities
extract
Types and traits for extracting data from requests.
handler
Async functions that can be used to handle requests.
http
A general purpose library of common HTTP types
middleware
Utilities for writing middleware
response
Types and traits for generating responses.
routing
Routing between Services and handlers.
tracing_fmt
A Subscriber for formatting and logging tracing data.
tracing_prelude
The tracing-subscriber prelude.
tracing_registry
Storage for span data shared by multiple Layers.

Macros§

app
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§

Error
Errors that can happen when using axum.
Extension
Extractor and response for extensions.
Request
Represents an HTTP request.
RequestWrapper
ResponseWrapper
Router
The router type for composing handlers and services.

Traits§

RequestExt
Extension trait that adds additional methods to Request.
RequestPartsExt
Extension trait that adds additional methods to Parts.
Service
An asynchronous function from a Request to a Response.
ServiceExt
Extension trait that adds additional methods to any Service.

Functions§

block_on
Run a future to completion on the current thread.
from_read
Deserialize an instance of type T from an I/O stream of MessagePack.
tracing_fmt
Returns a new SubscriberBuilder for configuring a formatting subscriber.
tracing_registry
Returns a default Registry.

Type Aliases§

BoxError
Alias for a type-erased error type.

Attribute Macros§

async_trait