Expand description
§Trillium server adapter for tokio
fn main() {
trillium_tokio::run(|conn: trillium::Conn| async move { conn.ok("hello tokio") });
}#[tokio::main]
async fn main() {
trillium_tokio::run_async(|conn: trillium::Conn| async move { conn.ok("hello tokio") })
.await;
}Re-exports§
pub use async_compat;pub use tokio;pub use tokio_stream;
Structs§
- Client
Config - configuration for the tcp Connector
- Swansong
- 🦢 Shutdown manager
- Tokio
Runtime - tokio runtime
- Tokio
Transport - A transport newtype for tokio
- Tokio
UdpSocket - Tokio-backed async UDP socket for use with QUIC transports.
Enums§
- Binding
- A wrapper enum that has blanket implementations for common traits like TryFrom, Stream, AsyncRead, and AsyncWrite. This can contain listeners (like TcpListener), Streams (like Incoming), or bytestreams (like TcpStream).