routerify_ng 0.3.1

A lightweight, idiomatic, composable and modular router implementation with middleware support for the Rust HTTP library hyper.rs 1.7.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::data_map::DataMap;
use std::sync::Arc;

#[derive(Debug, Clone)]
pub(crate) struct SharedDataMap {
    pub(crate) inner: Arc<DataMap>,
}

impl SharedDataMap {
    pub fn new(data_map: Arc<DataMap>) -> SharedDataMap {
        SharedDataMap { inner: data_map }
    }
}