rustium 0.1.4

A Rust application framework that values concurrency, performance, and scalability
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{prelude::*, settings::RustiumSettings};

// region: Struct

#[derive(Clone)]
pub struct AppContext {
    pub settings: RustiumSettings,
}
// endregion: Struct

// region: Implementation

impl AppContext {
    pub async fn new(settings: RustiumSettings) -> RustiumResult<Self> {
        Ok(AppContext { settings })
    }
}
// endregion: Implementation