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
use crate::*;
use std::sync::Arc;
pub trait UniCyfsStack: Send + Sync {
fn non_service(&self) -> &NONOutputProcessorRef;
fn ndn_service(&self) -> &NDNOutputProcessorRef;
fn crypto_service(&self) -> &CryptoOutputProcessorRef;
fn util_service(&self) -> &UtilOutputProcessorRef;
fn trans_service(&self) -> &TransOutputProcessorRef;
fn router_handlers(&self) -> &RouterHandlerManagerProcessorRef;
fn router_events(&self) -> &RouterEventManagerProcessorRef;
fn root_state(&self) -> &GlobalStateOutputProcessorRef;
fn root_state_accessor(&self) -> &GlobalStateAccessorOutputProcessorRef;
fn local_cache(&self) -> &GlobalStateOutputProcessorRef;
fn local_cache_accessor(&self) -> &GlobalStateAccessorOutputProcessorRef;
fn root_state_meta(&self) -> &GlobalStateMetaOutputProcessorRef;
fn local_cache_meta(&self) -> &GlobalStateMetaOutputProcessorRef;
}
pub type UniCyfsStackRef = Arc<dyn UniCyfsStack>;