Expand description
Tokio Adapter for AimDB
This crate provides Tokio-specific extensions for AimDB, enabling the database to run on standard library environments using the Tokio async runtime.
§Features
- Tokio Integration: Seamless integration with Tokio async executor
- Time Support: Timestamp, sleep, and delayed task capabilities with
tokio::time - Error Handling: Tokio-specific error conversions and handling
- Std Compatible: Designed for environments with full standard library
§Architecture
Tokio is a std async runtime, so this adapter is designed for standard environments and works with the std version of aimdb-core by default.
The adapter extends AimDB’s core functionality without requiring tokio dependencies in the core crate. It provides:
- Runtime Module: Core async task spawning with
RuntimeAdapter - Time Module: Time-related capabilities like timestamps and sleep
- Error Module: Runtime error constructors and conversions
- Rich error descriptions leveraging std formatting capabilities
See the repository examples for complete usage patterns.
Re-exports§
pub use buffer::TokioBuffer;pub use error::TokioErrorSupport;pub use runtime::TokioAdapter;
Modules§
- buffer
- Tokio buffer implementations for AimDB
- connector
- Connector task spawning for Tokio runtime
- error
- Tokio-specific error handling support
- runtime
- Tokio Runtime Adapter for AimDB
- time
- Tokio Time-related Adapter Implementations
Traits§
- Tokio
Record Registrar Ext - Extension trait for convenient configuration with this runtime
Type Aliases§
- Tokio
Database - Type alias for Tokio database