[−][src]Crate context_coroutine
#context-coroutine
This is a simple set of extensions to the context crate to provide stackful coroutines.
The intended use case is mostly for read and write (input and output, I/O) with socket file descriptors.
The developers are not associated with the authors of context but are extremely grateful for the work they've put into to a superb piece of code.
Structs
SimpleStack | A simple stack. |
StackAndTypeSafeTransfer | Holds a stack and a type-safe transfer; suitable for the ultimate owner of a coroutine. |
StartedStackAndTypeSafeTransfer | Holds a stack and a type-safe transfer of a started coroutine; suitable for the ultimate owner of a coroutine. |
Yielder | A simple structure to make it easy to 'yield' from a coroutine. |
Enums
ResumeOutcome | Outcome of a coroutine's resumption. |
StartOutcome | Outcome of a coroutine's start. |
Traits
Coroutine | A trait that stackful coroutines should implement. |
TransferExt | Extension trait to Transfer. |
TransferableData | Data that can be transfered to a continuation. |
Type Definitions
ResumeOnTopFunction | A function pointer. |