Expand description
Common byte, collection, future, and service utilities.
Modules§
- buffer
- Service that buffers incoming requests.
- hash_
map - A hash map implemented with quadratic probing and SIMD lookup.
- hash_
set - A hash set implemented as a
HashMapwhere the value is(). - inflight
- Middleware for limiting concurrent service calls.
- keepalive
- onerequest
- Middleware that permits one service call at a time.
- retry
- timeout
- Service that applies a timeout to requests.
Structs§
- Byte
Page - A contiguous chunk stored by
BytePages. - Byte
Pages - A growable sequence of byte pages.
- Byte
String - An immutable UTF-8 string backed by
Bytes. - Bytes
- A reference counted contiguous slice of memory.
- Bytes
Mut - A unique reference to a contiguous slice of memory.
- Counter
- A shared count with an asynchronous capacity notification.
- Counter
Guard - An acquired counter slot.
- Error
Message - A lightweight owned error message.
- Error
Message Chained - An owned error message with an optional source error.
- Extensions
- A type map of request extensions.
- Lazy
- Future for the
lazyfunction. - OnDrop
Fn - Runs a callback when this guard is dropped.
- OnDrop
Future - Future wrapper that runs a callback if dropped before completion.
Enums§
- Byte
Page Size - Capacity category used when allocating
crate::BytePagestorage. - Either
- A value of one of two types.
Traits§
- Buf
- Read bytes from a buffer.
- BufMut
- A trait for values that provide sequential write access to bytes.
- Equivalent
- Key equivalence trait.
- OnDrop
Future Ext - Extension trait for running a callback when a pending future is dropped.
- Stream
- A stream of values produced asynchronously.
- TryFuture
- A convenience for futures that return
Resultvalues that includes a variety of adapters tailored to such futures.
Functions§
- clone_
io_ error - Clones an I/O error’s kind and message.
- dyn_err
- Boxes an error as a dynamically dispatched error.
- dyn_
rc_ err - Wraps an error in a reference-counted, dynamically dispatched error.
- fmt_err
- Writes an error and its source chain.
- fmt_
err_ string - Formats an error and its source chain into a string.
- join
- Future for the
joincombinator, waiting for two futures to complete. - join_
all - Creates a future which represents a collection of the outputs of the futures given.
- lazy
- Creates a new future that allows delayed execution of a closure.
- select
- Waits for either one of two differently-typed futures to complete.
- str_
rc_ err - Converts a string into a reference-counted error.
- stream_
recv - Waits for and returns the next item from a stream.