Module callback_state

Module callback_state 

Source
Expand description

Helpers for writing futures against the C-based async API

Structsยง

CallbackSharedState
Implements the basic pattern of a two-sided struct used by a system api that calls a callback (which uses the C generic) and a rust abstraction over that API to provide either rust callbacks or futures, where the two sides need to coordinate.