pub trait NodeAggregatorTrait<T: Clone + Send + Sync>: Send + Sync {
// Required method
fn aggregate_up(
&self,
start_node: &NodeId,
state: Arc<State>,
) -> impl Future<Output = ForgeResult<HashMap<NodeId, T>>> + Send;
}Expand description
节点聚合器 Trait
定义树形结构的自下而上聚合计算接口
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.