Trait axum_extra::routing::RouterExt
source · [−]pub trait RouterExt<B>: Sealed {
fn typed_get<H, T, P>(self, handler: H) -> Self
where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath;
fn typed_delete<H, T, P>(self, handler: H) -> Self
where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath;
fn typed_head<H, T, P>(self, handler: H) -> Self
where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath;
fn typed_options<H, T, P>(self, handler: H) -> Self
where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath;
fn typed_patch<H, T, P>(self, handler: H) -> Self
where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath;
fn typed_post<H, T, P>(self, handler: H) -> Self
where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath;
fn typed_put<H, T, P>(self, handler: H) -> Self
where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath;
fn typed_trace<H, T, P>(self, handler: H) -> Self
where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath;
}
Expand description
Extension trait that adds additional methods to Router
.
Required Methods
fn typed_get<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_get<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.fn typed_delete<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_delete<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.fn typed_head<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_head<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.fn typed_options<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_options<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.fn typed_patch<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_patch<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.fn typed_post<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_post<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.fn typed_put<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_put<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.fn typed_trace<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_trace<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.Implementations on Foreign Types
sourceimpl<B> RouterExt<B> for Router<B> where
B: HttpBody + Send + 'static,
impl<B> RouterExt<B> for Router<B> where
B: HttpBody + Send + 'static,
sourcefn typed_get<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_get<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.sourcefn typed_delete<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_delete<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.sourcefn typed_head<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_head<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.sourcefn typed_options<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_options<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.sourcefn typed_patch<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_patch<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.sourcefn typed_post<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_post<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.sourcefn typed_put<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_put<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.sourcefn typed_trace<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
fn typed_trace<H, T, P>(self, handler: H) -> Self where
H: Handler<T, B>,
T: FirstElementIs<P> + 'static,
P: TypedPath,
Available on crate feature
typed-routing
only.