Crate ryde Copy item path Source pub use axum ;pub use axum::http ;pub use db::rusqlite ;pub use db::tokio_rusqlite ;pub use serde ;pub use tokio ;body HTTP body utilities. connect_info Extractor for getting connection information from a client. cookie Cookie parsing and cookie jar management. de Generic data structure deserialization framework. 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 io Traits, helpers, and type definitions for asynchronous I/O functionality. middleware Utilities for writing middleware multipart Extractor that parses multipart/form-data requests commonly used with file uploads. net TCP/UDP/Unix bindings for tokio. path Extractor that will get captures from the URL and parse them using
serde . rejection Rejection response types. response Types and traits for generating responses. routing Routing between Service s and handlers. runtime The Tokio runtime. ser Generic data structure serialization framework. serve Serve services. sse Server-Sent Events (SSE) responses. stream Due to the Stream trait’s inclusion in std landing later than Tokio’s 1.0
release, most of the Tokio stream utilities have been moved into the tokio-stream
crate. sync Synchronization primitives for use in asynchronous contexts. task Asynchronous green-threads. time Utilities for tracking time. component db embed_static_files forward_to_deserialize_any Helper macro when implementing the Deserializer part of a new data format
for Serde. html is_unique join Waits on multiple concurrent branches, returning when all branches
complete. pin Pins a value on the stack. redirect_to render_static_files routes select Waits on multiple concurrent branches, returning when the first branch
completes, cancelling the remaining branches. task_local Declares a new task-local key of type tokio::task::LocalKey . try_join Waits on multiple concurrent branches, returning when all branches
complete with Ok(_) or on the first Err(_). url AppendHeaders Append headers to a response. Cached Cache results of other extractors. Component ConnectInfo Extractor for getting connection information produced by a Connected . Connection A handle to call functions in background thread. Cookie Representation of an HTTP cookie. CookieJar Extractor that grabs cookies from the request and manages the jar. DefaultBodyLimit Layer for configuring the default request body limit. Drain A drain iterator for HeaderMap. ErrorResponse An IntoResponse -based error type Extension Extractor and response for extensions. Form URL encoded extractor and response. GetAll A view to all values stored in a single entry. HeaderMap A set of HTTP headers HeaderName Represents an HTTP header field name HeaderValue Represents an HTTP header field value. Host Extractor that resolves the hostname of the request. IntoIter An owning iterator over the entries of a HeaderMap. InvalidHeaderName A possible error when converting a HeaderName from another type. InvalidHeaderValue A possible error when converting a HeaderValue from a string or byte
slice. Iter HeaderMap entry iterator.IterMut HeaderMap mutable entry iteratorJson JSON Extractor / Response. Keys An iterator over HeaderMap keys. MatchedPath Access the path in the router that matches the request. MaxSizeReached Error returned when max capacity of HeaderMap is exceeded Multipart Extractor that parses multipart/form-data requests (commonly used with file uploads). NestedPath Access the path the matched the route is nested at. NoContent An empty response with 204 No Content status. OccupiedEntry A view into a single occupied location in a HeaderMap. OptionalPath Extractor that extracts path arguments the same way as Path , except if there aren’t any. OriginalUri Extractor that gets the original request URI regardless of nesting. Path Extractor that will get captures from the URL and parse them using
serde . Query Extractor that deserializes query strings into some type. RawForm Extractor that extracts raw form requests. RawPathParams Extractor that will get captures from the URL without deserializing them. RawQuery Extractor that extracts the raw query string, without parsing it. Redirect Response that redirects the request to another location. ResponseParts Parts of a response. Router The router type for composing handlers and services. Sse An SSE response State Extractor for state. ToStrError A possible error when converting a HeaderValue to a string representation. TypedHeader Extractor and response that works with typed header values from headers . Uri The URI component of a request. VacantEntry A view into a single empty location in a HeaderMap. ValueDrain An drain iterator of all values associated with a single header name. ValueIter An iterator of all values associated with a single header name. ValueIterMut A mutable iterator of all values associated with a single header name. Values HeaderMap value iterator.ValuesMut HeaderMap mutable value iteratorWithRejection Extractor for customizing extractor rejections Entry A view into a single location in a HeaderMap, which may be vacant or occupied. Error ACCEPT Advertises which content types the client is able to understand. ACCEPT_CHARSET Advertises which character set the client is able to understand. ACCEPT_ENCODING Advertises which content encoding the client is able to understand. ACCEPT_LANGUAGE Advertises which languages the client is able to understand. ACCEPT_RANGES Marker used by the server to advertise partial request support. ACCESS_CONTROL_ALLOW_CREDENTIALS Preflight response indicating if the response to the request can be
exposed to the page. ACCESS_CONTROL_ALLOW_HEADERS Preflight response indicating permitted HTTP headers. ACCESS_CONTROL_ALLOW_METHODS Preflight header response indicating permitted access methods. ACCESS_CONTROL_ALLOW_ORIGIN Indicates whether the response can be shared with resources with the
given origin. ACCESS_CONTROL_EXPOSE_HEADERS Indicates which headers can be exposed as part of the response by
listing their names. ACCESS_CONTROL_MAX_AGE Indicates how long the results of a preflight request can be cached. ACCESS_CONTROL_REQUEST_HEADERS Informs the server which HTTP headers will be used when an actual
request is made. ACCESS_CONTROL_REQUEST_METHOD Informs the server know which HTTP method will be used when the actual
request is made. AGE Indicates the time in seconds the object has been in a proxy cache. ALLOW Lists the set of methods support by a resource. ALT_SVC Advertises the availability of alternate services to clients. AUTHORIZATION Contains the credentials to authenticate a user agent with a server. CACHE_CONTROL Specifies directives for caching mechanisms in both requests and
responses. CACHE_STATUS Indicates how caches have handled a response and its corresponding request. CDN_CACHE_CONTROL Specifies directives that allow origin servers to control the behavior of CDN caches
interposed between them and clients separately from other caches that might handle the
response. CONNECTION Controls whether or not the network connection stays open after the
current transaction finishes. CONTENT_DISPOSITION Indicates if the content is expected to be displayed inline. CONTENT_ENCODING Used to compress the media-type. CONTENT_LANGUAGE Used to describe the languages intended for the audience. CONTENT_LENGTH Indicates the size of the entity-body. CONTENT_LOCATION Indicates an alternate location for the returned data. CONTENT_RANGE Indicates where in a full body message a partial message belongs. CONTENT_SECURITY_POLICY Allows controlling resources the user agent is allowed to load for a
given page. CONTENT_SECURITY_POLICY_REPORT_ONLY Allows experimenting with policies by monitoring their effects. CONTENT_TYPE Used to indicate the media type of the resource. COOKIE Contains stored HTTP cookies previously sent by the server with the
Set-Cookie header. DATE Contains the date and time at which the message was originated. DNT Indicates the client’s tracking preference. ETAG Identifier for a specific version of a resource. EXPECT Indicates expectations that need to be fulfilled by the server in order
to properly handle the request. EXPIRES Contains the date/time after which the response is considered stale. FORWARDED Contains information from the client-facing side of proxy servers that
is altered or lost when a proxy is involved in the path of the request. FROM Contains an Internet email address for a human user who controls the
requesting user agent. HOST Specifies the domain name of the server and (optionally) the TCP port
number on which the server is listening. IF_MATCH Makes a request conditional based on the E-Tag. IF_MODIFIED_SINCE Makes a request conditional based on the modification date. IF_NONE_MATCH Makes a request conditional based on the E-Tag. IF_RANGE Makes a request conditional based on range. IF_UNMODIFIED_SINCE Makes the request conditional based on the last modification date. LAST_MODIFIED The Last-Modified header contains the date and time when the origin believes
the resource was last modified. LINK Allows the server to point an interested client to another resource
containing metadata about the requested resource. LOCATION Indicates the URL to redirect a page to. MAX_FORWARDS Indicates the max number of intermediaries the request should be sent
through. ORIGIN Indicates where a fetch originates from. PRAGMA HTTP/1.0 header usually used for backwards compatibility. PROXY_AUTHENTICATE Defines the authentication method that should be used to gain access to
a proxy. PROXY_AUTHORIZATION Contains the credentials to authenticate a user agent to a proxy server. PUBLIC_KEY_PINS Associates a specific cryptographic public key with a certain server. PUBLIC_KEY_PINS_REPORT_ONLY Sends reports of pinning violation to the report-uri specified in the
header. RANGE Indicates the part of a document that the server should return. REFERER Contains the address of the previous web page from which a link to the
currently requested page was followed. REFERRER_POLICY Governs which referrer information should be included with requests
made. REFRESH Informs the web browser that the current page or frame should be
refreshed. RETRY_AFTER The Retry-After response HTTP header indicates how long the user agent
should wait before making a follow-up request. There are two main cases
this header is used: SEC_WEBSOCKET_ACCEPT The |Sec-WebSocket-Accept| header field is used in the WebSocket
opening handshake. It is sent from the server to the client to
confirm that the server is willing to initiate the WebSocket
connection. SEC_WEBSOCKET_EXTENSIONS The |Sec-WebSocket-Extensions| header field is used in the WebSocket
opening handshake. It is initially sent from the client to the
server, and then subsequently sent from the server to the client, to
agree on a set of protocol-level extensions to use for the duration
of the connection. SEC_WEBSOCKET_KEY The |Sec-WebSocket-Key| header field is used in the WebSocket opening
handshake. It is sent from the client to the server to provide part
of the information used by the server to prove that it received a
valid WebSocket opening handshake. This helps ensure that the server
does not accept connections from non-WebSocket clients (e.g., HTTP
clients) that are being abused to send data to unsuspecting WebSocket
servers. SEC_WEBSOCKET_PROTOCOL The |Sec-WebSocket-Protocol| header field is used in the WebSocket
opening handshake. It is sent from the client to the server and back
from the server to the client to confirm the subprotocol of the
connection. This enables scripts to both select a subprotocol and be
sure that the server agreed to serve that subprotocol. SEC_WEBSOCKET_VERSION The |Sec-WebSocket-Version| header field is used in the WebSocket
opening handshake. It is sent from the client to the server to
indicate the protocol version of the connection. This enables
servers to correctly interpret the opening handshake and subsequent
data being sent from the data, and close the connection if the server
cannot interpret that data in a safe manner. SERVER Contains information about the software used by the origin server to
handle the request. SET_COOKIE Used to send cookies from the server to the user agent. STRICT_TRANSPORT_SECURITY Tells the client to communicate with HTTPS instead of using HTTP. TE Informs the server of transfer encodings willing to be accepted as part
of the response. TRAILER Allows the sender to include additional fields at the end of chunked
messages. TRANSFER_ENCODING Specifies the form of encoding used to safely transfer the entity to the
client. UPGRADE Used as part of the exchange to upgrade the protocol. UPGRADE_INSECURE_REQUESTS Sends a signal to the server expressing the client’s preference for an
encrypted and authenticated response. USER_AGENT Contains a string that allows identifying the requesting client’s
software. VARY Determines how to match future requests with cached responses. VIA Added by proxies to track routing. WARNING General HTTP header contains information about possible problems with
the status of the message. WWW_AUTHENTICATE Defines the authentication method that should be used to gain access to
a resource. X_CONTENT_TYPE_OPTIONS Marker used by the server to indicate that the MIME types advertised in
the content-type headers should not be changed and be followed. X_DNS_PREFETCH_CONTROL Controls DNS prefetching. X_FRAME_OPTIONS Indicates whether or not a browser should be allowed to render a page in
a frame. X_XSS_PROTECTION Stop pages from loading when an XSS attack is detected. AsHeaderName A marker trait used to identify values that can be used as search keys
to a HeaderMap. Deserialize A data structure that can be deserialized from any data format supported
by Serde. Deserializer A data format that can deserialize any data structure supported by
Serde. Display Format trait for an empty format, {}. FromRef Used to do reference-to-value conversions thus not consuming the input value. FromRequest Types that can be created from requests. FromRequestParts Types that can be created from request parts. IntoHeaderName A marker trait used to identify values that can be used as insert keys
to a HeaderMap. IntoResponse Trait for generating responses. IntoResponseParts Trait for adding headers and extensions to a response. Render RequestExt Extension trait that adds additional methods to Request . RequestPartsExt Extension trait that adds additional methods to Parts . Serialize A data structure that can be serialized into any data format supported
by Serde. Serializer A data format that can serialize any data structure supported by Serde. ServiceExt Extension trait that adds additional methods to any Service . connection escape is_unique redirect serve server spawn Spawns a new asynchronous task, returning a
JoinHandle for it. BoxError Alias for a type-erased error type. Elements Html Request Type alias for http::Request whose body type defaults to Body , the most common body
type used with axum. Response Type alias for http::Response whose body type defaults to Body , the most common body
type used with axum. Result async_trait debug_handler Generates better error messages when applied to handler functions. debug_middleware Generates better error messages when applied to middleware functions. main Marks async function to be executed by the selected runtime. This macro
helps set up a Runtime without requiring the user to use
Runtime or
Builder directly. test Marks async function to be executed by runtime, suitable to test environment.
This macro helps set up a Runtime without requiring the user to use
Runtime or
Builder directly. Deserialize FromRef Derive an implementation of FromRef for each field in a struct. FromRequest Derive an implementation of FromRequest . FromRequestParts Derive an implementation of FromRequestParts . Serialize StaticFiles