Trait axum::middleware::IntoMapRequestResult

source ·
pub trait IntoMapRequestResult<B>: Sealed<B> {
    // Required method
    fn into_map_request_result(self) -> Result<Request<B>, Response>;
}
Expand description

Trait implemented by types that can be returned from map_request, map_request_with_state.

This trait is sealed such that it cannot be implemented outside this crate.

Required Methods§

source

fn into_map_request_result(self) -> Result<Request<B>, Response>

Perform the conversion.

Implementations on Foreign Types§

source§

impl<B> IntoMapRequestResult<B> for Request<B>

source§

impl<B, E> IntoMapRequestResult<B> for Result<Request<B>, E>
where E: IntoResponse,

Implementors§