1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! DAG 引擎已抽为独立 crate [`mocra_dag`]。
//!
//! 此模块保留为 re-export shim(顶层 + `dag` 子模块,兼容既有 `crate::schedule::*`
//! 与 `crate::schedule::dag::*` 路径),并在此提供宿主 adapter:把主 crate 的
//! [`CacheService`](crate::cacheable::CacheService) / [`SyncService`] 适配为 dag 的
//! [`DagStore`] / [`DagEventSink`]。
pub use *;
/// 兼容旧路径 `crate::schedule::dag::*`。
use async_trait;
use crate;
// `impl DagStore for CacheService` 已随 `CacheService` 迁入 `mocra-core`(孤儿规则:
// trait 与类型均在外部 crate,impl 必须在拥有其一的 crate 里)。
// SyncAble 是本地 trait、DagNodeSyncState 是外部类型 —— 孤儿规则允许在此 impl。
/// 把宿主的分布式同步服务适配为 dag 的节点状态事件出口。
;