Skip to main content

IntoResponse

Trait IntoResponse 

Source
pub trait IntoResponse: Sealed + Sized {
    type Response;

    // Required method
    fn into_response(self, res: Response) -> Self::Response;
}
Expand description

trait for generic over how to construct an async stream rows

Required Associated Types§

Required Methods§

Source

fn into_response(self, res: Response) -> Self::Response

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoResponse for Arc<[Column]>

Source§

type Response = GenericRowStream<Arc<[Column]>, Typed>

Source§

fn into_response(self, res: Response) -> Self::Response

Source§

impl IntoResponse for Vec<Column>

Source§

type Response = GenericRowStream<Vec<Column>, NoTyped>

Source§

fn into_response(self, res: Response) -> Self::Response

Source§

impl<'c> IntoResponse for &'c [Column]

Source§

type Response = GenericRowStream<&'c [Column], Typed>

Source§

fn into_response(self, res: Response) -> Self::Response

Implementors§