Expand description
§Trillium server adapter for async-std
fn main() {
trillium_async_std::run(|conn: trillium::Conn| async move { conn.ok("hello async-std") });
}#[async_std::main]
async fn main() {
trillium_async_std::run_async(
|conn: trillium::Conn| async move { conn.ok("hello async-std") },
)
.await;
}Re-exports§
pub use async_std;
Structs§
- Async
StdRuntime - async-std runtime
- Async
StdTransport - A transport newtype for async-std
- Async
StdUdp Socket - Async-io-backed UDP socket for use with QUIC transports.
- Client
Config - configuration for the tcp Connector
- Swansong
- 🦢 Shutdown manager
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).