Expand description
Prelude for async utilities for use in web applications.
This includes all the imports from kvarn_utils::prelude
.
It also imports async-related std
items and the common tokio
items.
Modules§
- Utility functions for web application development.
Macros§
- Convenience macro to create a
Bytes
from multiple&[u8]
sources. - Logs a message at the debug level.
- Logs a message at the error level.
- Creates a
CompactString
using interpolation of runtime expressions. - Logs a message at the info level.
- The standard logging macro.
- Logs a message at the trace level.
- Logs a message at the warn level.
Structs§
- A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
- A cheaply cloneable and sliceable chunk of contiguous memory.
- A unique reference to a contiguous slice of memory.
- A
CompactString
is a compact string type that can be used almost anywhere aString
orstr
can be used. - The context of an asynchronous task.
- A
Duration
type to represent a span of time, typically used for system timeouts. - Configuration for formatting.
- A hash map implemented with quadratic probing and SIMD lookup.
- A set of HTTP headers
- Represents an HTTP header field name
- Represents an HTTP header field value.
- A measurement of a monotonically nondecreasing clock. Opaque and useful only with
Duration
. - The Request Method (VERB)
- An asynchronous
Mutex
-like type. - A slice of a path (akin to
str
). - An owned, mutable path (akin to
String
). - A pointer which pins its pointee in place.
- A wrapper around a byte buffer that is incrementally filled and initialized.
- Represents an HTTP request.
- Represents an HTTP response
- An asynchronous reader-writer lock.
- An HTTP status code (
status-code
in RFC 7230 et al.). - The URI component of a request.
- Represents a version of the HTTP spec.
- A writeable
Bytes
.
Enums§
- A clone-on-write smart pointer.
- An IP address, either IPv4 or IPv6.
- Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead.
- An internet socket address, either IPv4 or IPv6.
Traits§
- Trait to enable
.as_clean
to get aCleanDebug
for the variable. - Reads bytes from a source.
- AsyncReadExt
io-util
Reads bytes from a source. - Writes bytes asynchronously.
- AsyncWriteExt
io-util
Writes bytes to a sink. - A
BufRead
is a type ofRead
er which has an internal buffer, allowing it to perform extra ways of reading. ?
formatting.- Format trait for an empty format,
{}
. - A future represents an asynchronous computation obtained by use of
async
. - Trait for types that form a total order.
- Trait for types that form a partial order.
- The
Read
trait allows for reading bytes from a source. - The
Seek
trait provides a cursor which can be moved within a stream of bytes. - A trait for converting a value to a
CompactString
. - Simple and safe type conversions that may fail in a controlled way under some circumstances. It is the reciprocal of
TryInto
. - A trait for objects which are byte-oriented sinks.
Derive Macros§
- Derive macro generating an impl of the trait
Debug
. - Derive macro generating an impl of the trait
PartialOrd
. The behavior of this macro is described in detail here.