Skip to main content

Module blocking

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::io traits.
Runtime
A cloneable, continuously driven Tokio runtime for blocking API boundaries.
RuntimeBuilder
Builder for a dedicated blocking-boundary Runtime.
Service
An asynchronous service exposed through a synchronous BlockingService boundary.
Stream
An asynchronous stream exposed as a blocking Iterator.

Enums§

RuntimeFlavor
The Tokio scheduler used by a Runtime.