mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-14 02:40:47 +01:00
254d8fde17
* Move `IntoResponse` to axum-core * Move `FromRequest` to axum-core * some clean up * Remove hyper dependency from axum-core * Fix docs reference * Use default * Update changelog * Remove mention of default type
26 lines
422 B
Rust
26 lines
422 B
Rust
use axum::{
|
|
async_trait,
|
|
extract::{FromRequest, RequestParts},
|
|
};
|
|
use axum_debug::debug_handler;
|
|
|
|
struct A;
|
|
|
|
#[async_trait]
|
|
impl<B> FromRequest<B> for A
|
|
where
|
|
B: Send + 'static,
|
|
{
|
|
type Rejection = ();
|
|
|
|
async fn from_request(_req: &mut RequestParts<B>) -> Result<Self, Self::Rejection> {
|
|
unimplemented!()
|
|
}
|
|
}
|
|
|
|
impl A {
|
|
#[debug_handler]
|
|
async fn handler(&mut self) {}
|
|
}
|
|
|
|
fn main() {}
|