accepts/lib.rs
1//! Foundational acceptor traits exposed by the crate.
2//!
3//! These traits abstract over types that can *accept* values or asynchronous
4//! computations. They serve as the building blocks for adapters provided in
5//! other modules and make it possible to write code that is generic over
6//! different acceptor implementations.
7
8#![allow(clippy::manual_async_fn)]
9
10#[cfg(feature = "alloc")]
11extern crate alloc;
12
13mod implementations;
14
15//sync
16mod accepts;
17pub use accepts::Accepts;
18
19//async
20mod async_accepts;
21pub use async_accepts::AsyncAccepts;
22
23//box
24#[cfg(feature = "alloc")]
25mod dyn_async_accepts;
26#[cfg(feature = "alloc")]
27pub use dyn_async_accepts::DynAsyncAccepts;