Expand description
AimDB Executor Traits
Pure trait definitions for async execution across different runtime environments. Enables dependency inversion where the core database depends on abstractions rather than concrete runtime implementations.
§Design Philosophy
- Runtime Agnostic: No concrete runtime dependencies
- Simple Trait Structure: 4 focused traits covering all runtime needs
- Platform Flexible: Works across std and no_std environments
- Zero Dependencies: Pure trait definitions with minimal coupling
§Trait Structure
RuntimeAdapter- Platform identity and metadataTimeOps- Time operations (now, sleep, duration helpers)Logger- Structured logging (info, debug, warn, error)Spawn- Task spawning with platform-specific tokens
Structs§
Enums§
Traits§
- Logger
- Logging trait - enables ctx.log() accessor
- Runtime
- Complete runtime trait bundle
- Runtime
Adapter - Core runtime adapter trait - provides identity
- Spawn
- Task spawning trait - adapter-specific implementation
- TimeOps
- Time operations trait - enables ctx.time() accessor