Crate aimdb_executor

Crate aimdb_executor 

Source
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

  1. RuntimeAdapter - Platform identity and metadata
  2. TimeOps - Time operations (now, sleep, duration helpers)
  3. Logger - Structured logging (info, debug, warn, error)
  4. Spawn - Task spawning with platform-specific tokens

Structs§

RuntimeInfo

Enums§

ExecutorError

Traits§

Logger
Logging trait - enables ctx.log() accessor
Runtime
Complete runtime trait bundle
RuntimeAdapter
Core runtime adapter trait - provides identity
Spawn
Task spawning trait - adapter-specific implementation
TimeOps
Time operations trait - enables ctx.time() accessor

Type Aliases§

ExecutorResult