Crate mf_core

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 error_helpers::UnwrapHelpers;
pub use error_helpers::lock_helpers;
pub use error_helpers::collection_helpers;
pub use error_helpers::schema_helpers;
pub use error_helpers::state_helpers;
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 runtime::actor_runtime::ForgeActorRuntime;
pub use runtime::runtime_trait::RuntimeTrait;
pub use runtime::runtime_trait::RuntimeFactory;
pub use runtime::builder::ForgeRuntimeBuilder;
pub use runtime::system_detector::SystemResources;
pub use runtime::system_detector::ResourceTier;
pub use runtime::adaptive::AdaptiveRuntimeSelector;
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 config::RuntimeType;
pub use config::RuntimeConfig;
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::XmlSchemaSerializer;
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 actors::ForgeActorSystem;
pub use actors::ActorSystemConfig;
pub use actors::transaction_processor::TransactionMessage;
pub use actors::transaction_processor::TransactionStats;
pub use actors::state_actor::StateMessage;
pub use actors::state_actor::HistoryInfo;
pub use actors::state_actor::StateSnapshot;
pub use actors::event_bus::EventBusMessage;
pub use actors::event_bus::EventBusStats;
pub use types::*;

Modules§

actors
Actor系统模块 - 基于ractor框架的实现
config
统一配置管理模块
debug
error
error_helpers
event
extension
extension_manager
helpers
history_manager
mark
metrics
middleware
node
runtime
schema_parser
XML Schema 解析与序列化模块
types