aimo-cli 0.1.0

AiMo Network router node Rust implementation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::sync::Arc;

use crate::router::Router;

#[derive(Clone)]
pub struct ServiceContext {
    pub(super) router: Arc<dyn Router + Send + Sync>,
}

impl ServiceContext {
    pub fn new(router: Arc<dyn Router + Send + Sync>) -> Self {
        Self { router }
    }
}