Skip to main content

IntoResponse

Trait IntoResponse 

Source
pub trait IntoResponse<B> {
    // Required method
    fn into_response(self) -> Response<B>;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl IntoResponse<BoundedBody<Vec<u8>>> for Result<(), HttpError>

Source§

impl<B: IntoBody<IntoBody = BoundedBody<Vec<u8>>>> IntoResponse<BoundedBody<Vec<u8>>> for Result<B, HttpError>

Source§

impl<B: Body, Err: IntoResponse<B>> IntoResponse<B> for Result<Response<B>, Err>

Source§

impl<T> IntoResponse<BoundedBody<Vec<u8>>> for Result<Json<T>, HttpError>
where T: Serialize,

Implementors§