Skip to main content

OwnedShape

Trait OwnedShape 

Source
pub trait OwnedShape: OwnedShape + 'static {
    type Shape: Shape<'static>;

    const BODY_KIND: ResponseKind;

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

Required Associated Constants§

Required Associated Types§

Source

type Shape: Shape<'static>

Required Methods§

Source

fn into_shape(self) -> Self::Shape

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl OwnedShape for Chunked

Source§

const BODY_KIND: ResponseKind = super::super::body_kind::ResponseKind::Inline

Source§

type Shape = Chunked

Source§

impl OwnedShape for Response

Source§

const BODY_KIND: ResponseKind = super::super::body_kind::ResponseKind::Inline

Source§

type Shape = ServeInner<'static>

Source§

impl<T> OwnedShape for T
where T: GeneratedResponse, T::Fields: OwnedValue,

Source§

const BODY_KIND: ResponseKind = T::BODY_KIND

Source§

type Shape = <T as GeneratedResponse>::Shape