rambl_rs 0.1.10

An HTTP server framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(dead_code)]
use tokio::sync::Mutex;
use std::sync::Arc;

use crate::Request;

/// Contains the current context of the request and state.
pub struct Context<T=()> {
    /// Contains current request
    pub request: Request,
    /// Contains state
    pub state: Arc<Option<T>>
}