Crate mf_core

Source
Expand description

ModuForge-RS 核心模块

该模块提供了框架的核心功能,包括:

  • 异步处理器和运行时
  • 事件系统
  • 扩展机制
  • 流程控制
  • 错误处理
  • 历史记录管理
  • 中间件支持
  • 节点系统
  • 类型定义

主要组件:

  • async_processor: 异步任务处理器
  • async_runtime: 异步运行时环境
  • error: 错误类型和处理
  • event: 事件系统
  • extension: 扩展机制
  • flow: 流程控制
  • history_manager: 历史记录管理
  • middleware: 中间件支持
  • node: 节点系统
  • types: 核心类型定义

Re-exports§

pub use error::ForgeResult;
pub use error::error_utils;
pub use runtime::async_processor::AsyncProcessor;
pub use runtime::async_processor::ProcessorError;
pub use runtime::async_processor::TaskProcessor;
pub use runtime::async_processor::TaskResult;
pub use runtime::async_processor::TaskStatus;
pub use runtime::async_runtime::ForgeAsyncRuntime;
pub use config::ForgeConfig;
pub use config::ForgeConfigBuilder;
pub use config::Environment;
pub use config::ProcessorConfig;
pub use config::PerformanceConfig;
pub use config::EventConfig;
pub use config::HistoryConfig;
pub use config::ExtensionConfig;
pub use config::CacheConfig;
pub use config::ConfigValidationError;
pub use error::ForgeError;
pub use event::Event;
pub use event::EventBus;
pub use event::EventHandler;
pub use extension::Extension;
pub use extension_manager::ExtensionManager;
pub use extension_manager::ExtensionManagerBuilder;
pub use history_manager::History;
pub use history_manager::HistoryManager;
pub use runtime::runtime::ForgeRuntime;
pub use schema_parser::XmlSchemaParser;
pub use schema_parser::XmlSchemaError;
pub use schema_parser::XmlSchemaResult;
pub use runtime::sync_processor::SyncProcessor;
pub use runtime::sync_processor::TaskProcessor as SyncTaskProcessor;
pub use types::*;

Modules§

config
统一配置管理模块
error
event
extension
extension_manager
helpers
history_manager
mark
metrics
middleware
model
重命名
node
runtime
schema_parser
XML Schema 解析器模块
state
重命名
transform
重命名
types