Skip to main content

OwnedShape

Trait OwnedShape 

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

    const BODY_KIND: ResponseKind = <<Self::Shape as Shape<'static>>::Metadata as ShapeMetadata>::BODY_KIND;

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

Provided Associated Constants§

Source

const BODY_KIND: ResponseKind = <<Self::Shape as Shape<'static>>::Metadata as ShapeMetadata>::BODY_KIND

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<T> OwnedShape for T
where T: OwnedResponse,

Source§

type Shape = <T as IntoResponseShape<'static>>::Shape