Skip to main content

Crate turnloop_redis

Crate turnloop_redis 

Source
Expand description

§Getting started on turnloop

Enable the turnloop feature for the asynchronous module. The embedding host owns LocalExecutor and calls turn; adapters await its streams and deadline futures. See the crate README and turnloop-io for ownership, streaming and cancellation examples. Default features retain the sans-I/O API. Sans-I/O Redis connection. The host drains output, acknowledges writes with consume_output, supplies bytes/time, and polls events. Never reads a clock. Tokens are unique among outstanding commands. A timeout leaves a wire-order tombstone until its reply arrives, preventing later replies being misassigned.

Modules§

resp
Bounded RESP2/RESP3 codec. An allocation-free validation pass precedes result materialization, so fragmented input never creates temporary result trees.
routing
Cluster and Sentinel discovery helpers. The host owns per-node connections; redirects describe exactly where to retry and whether ASKING is required.

Structs§

Config
Connection
Error

Enums§

Event
State