Skip to main content

IntoOutput

Trait IntoOutput 

Source
pub trait IntoOutput<'req, 'd>: Sized {
    type Output: Emit<'req, 'd>;

    // Required method
    fn into_output(self) -> Self::Output;
}

Required Associated Types§

Source

type Output: Emit<'req, 'd>

Required Methods§

Source

fn into_output(self) -> Self::Output

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<'req, 'd, T, E> IntoOutput<'req, 'd> for Result<T, E>
where T: Immediate<'req, 'd>, E: Immediate<'req, 'd>,

Source§

type Output = Either<T, E>

Source§

fn into_output(self) -> Self::Output

Implementors§

Source§

impl<'body, 'req, 'd, H: Source> IntoOutput<'req, 'd> for sark_http::payload::response::statics::Direct<'body, H>
where 'body: 'd,

Source§

type Output = Direct<'body, H>

Source§

impl<'field, 'req, 'd, B> IntoOutput<'req, 'd> for Response<'field, B, (), Code>
where B: Body<'d>,

Source§

type Output = Direct<List<'field, Name<Cow<'field, str>>>, B>

Source§

impl<'req, 'd, 'head: 'req, B, const N: usize> IntoOutput<'req, 'd> for Output<'head, B, N>
where B: Body,

Source§

type Output = Output<'head, B, N>

Source§

impl<'req, 'd, 'head: 'req, S, const N: usize> IntoOutput<'req, 'd> for Stream<'head, S, N>

Source§

type Output = Stream<'head, S, N>

Source§

impl<'req, 'd, H, B> IntoOutput<'req, 'd> for sark_http::payload::response::fixed::Direct<H, B>
where H: Source, B: Body<'d>,

Source§

type Output = Direct<H, B>

Source§

impl<'req, 'd, H, B> IntoOutput<'req, 'd> for sark_http::payload::response::exact::Direct<H, B>
where H: Source, B: TryBody,

Source§

type Output = Direct<H, B>

Source§

impl<'req, 'd, L, R> IntoOutput<'req, 'd> for Either<L, R>
where L: Immediate<'req, 'd>, R: Immediate<'req, 'd>,

Source§

type Output = Either<L, R>