Module blocking
Available on crate feature
std only.Expand description
Blocking boundaries for asynchronous Rama services and I/O.
The runtime in this module is continuously driven on a dedicated thread. This matters for services that return before their background protocol tasks are finished, such as streaming HTTP responses, WebSockets, and multiplexed RPC clients.
§Panics
Blocking operations in this module must not run directly on an asynchronous executor thread.
Structs§
- Guarded
- A value carrying a runtime lease.
- Io
- Asynchronous I/O exposed through blocking
std::iotraits. - Runtime
- A cloneable, continuously driven Tokio runtime for blocking API boundaries.
- Runtime
Builder - Builder for a dedicated blocking-boundary
Runtime. - Service
- An asynchronous service exposed through a synchronous
BlockingServiceboundary. - Stream
- An asynchronous stream exposed as a blocking
Iterator.
Enums§
- Runtime
Flavor - The Tokio scheduler used by a
Runtime.