Skip to main content

IntoResponseShape

Trait IntoResponseShape 

Source
pub trait IntoResponseShape<'req>: Sized {
    type Shape: Shape<'req>;

    // Required method
    fn into_response_shape(self) -> Self::Shape;
}

Required Associated Types§

Source

type Shape: Shape<'req>

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'req, B, const N: usize, S> IntoResponseShape<'req> for EncodedResponse<'req, B, N, S>
where B: EncodedBody, S: StaticHeaders,

Source§

type Shape = EncodedResponse<'req, B, N, S>

Source§

impl<'req, S> IntoResponseShape<'req> for Stream<S>
where S: 'static,

Source§

impl<'req, const N: usize, S> IntoResponseShape<'req> for FixedResponse<'req, N, S>
where S: StaticHeaders,

Source§

type Shape = FixedResponse<'req, N, S>

Source§

impl<'req, const N: usize, S> IntoResponseShape<'req> for StaticResponseInner<'req, N, S>
where S: StaticHeaders,

Source§

impl<'req, const N: usize> IntoResponseShape<'req> for MonoResponseInner<'req, N>

Source§

impl<'req, const N: usize> IntoResponseShape<'req> for Serve<'req, N>

Source§

type Shape = Serve<'req, N>

Source§

impl<'req> IntoResponseShape<'req> for Chunked

Source§

impl<'req> IntoResponseShape<'req> for Response

Source§

type Shape = Serve<'req>