Skip to main content

Module local_builder

Module local_builder 

Source
Expand description

Single-threaded server builder for thread-per-core / !Send backends.

Mirrors crate::ServerBuilder but is generic over LocalTransport instead of Transport. Use this when the chosen backend (e.g. tokio-uring via the tcp-uring feature) is single-threaded by construction and its handle types are !Send.

§Runtime requirements

LocalServer::run must be polled inside a single-threaded reactor that owns a Tokio LocalSet (or anything with the same semantics). tokio_uring::start provides one for free; for plain tokio you can use tokio::task::LocalSet::run_until.

Structs§

LocalServer
Single-threaded server instance for LocalTransport backends.
LocalServerBuilder
Builder for LocalServer.