Crate context

source ·
Expand description

This project provides an easy interface to the famous Boost.Context library and thus the building blocks for higher-level abstractions, like coroutines, cooperative threads (userland threads) or an equivalent to the C# keyword “yield”.

Re-exports

pub use context::Context;
pub use context::ContextFn;
pub use context::ResumeOntopFn;
pub use context::Transfer;

Modules

Provides the Context and Transfer types for saving and restoring the current state of execution.
Provides utilities to allocate memory suitable as stack memory for Context.

Type Definitions

Equivalent to C’s void type when used as a pointer.