Module context

Module context 

Source
Expand description

Context trait and Local/Shared implementations

The Context trait provides the execution environment (Local vs Shared) and carries the Scheduler for dependency injection.

Re-exports§

pub use crate::rc::*;

Structs§

LocalCtx
Local context for single-threaded execution
LocalScope
Local scope marker - single-threaded, uses Rc/RefCell
SharedCtx
Shared context for multi-threaded execution
SharedScope
Shared scope marker - multi-threaded, uses Arc/Mutex

Traits§

Context
Context trait: Defines the execution environment and provides scheduling capabilities
Scope
Scope defines environment capabilities (Local vs Shared) as a type-level marker.

Type Aliases§

Local
These type aliases provide convenient defaults for LocalCtx and SharedCtx.
Shared