lxy 0.1.1

A convenient async http and RPC framework in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use axum::extract::FromRequestParts;

use crate::{App, get_app};

impl<S> FromRequestParts<S> for App
where
  S: Send + Sync,
{
  type Rejection = crate::error::Error;

  async fn from_request_parts(
    _parts: &mut axum::http::request::Parts,
    _state: &S,
  ) -> Result<Self, Self::Rejection> {
    get_app()
  }
}