trillium_server_common/
lib.rs

1#![deny(
2    clippy::dbg_macro,
3    missing_copy_implementations,
4    rustdoc::missing_crate_level_docs,
5    missing_debug_implementations,
6    missing_docs,
7    nonstandard_style,
8    unused_qualifications
9)]
10
11/*!
12# Utilities and traits for building trillium runtime adapters
13
14Trillium applications should never need to depend directly on this
15library. Server adapters should reexport any types from this crate
16that an application author would need to use.
17
18The parts of this crate that are not application facing should be
19expected to change more frequently than the parts that are application
20facing.
21
22If you are depending on this crate for private code that cannot be
23discovered through docs.rs' reverse dependencies, please open an
24issue.
25*/
26pub use async_trait::async_trait;
27pub use futures_lite::{AsyncRead, AsyncWrite};
28pub use trillium_http::{transport::Transport, Stopper};
29pub use url;
30pub use url::Url;
31
32mod clone_counter;
33pub use clone_counter::{CloneCounter, CloneCounterObserver};
34
35mod config;
36pub use config::Config;
37
38mod config_ext;
39pub use config_ext::ConfigExt;
40
41mod server;
42pub use server::Server;
43
44mod binding;
45pub use binding::Binding;
46
47mod client;
48pub use client::{Connector, ObjectSafeConnector};
49
50mod acceptor;
51pub use acceptor::Acceptor;
52
53mod server_handle;
54pub use server_handle::ServerHandle;