Skip to main content

Pipe

Trait Pipe 

Source
pub trait Pipe<Input>:
    Send
    + Sync
    + 'static {
    type Output;

    // Required method
    fn transform(
        value: Input,
        ctx: &RequestContext,
    ) -> Result<Self::Output, HttpException>;
}

Required Associated Types§

Required Methods§

Source

fn transform( value: Input, ctx: &RequestContext, ) -> Result<Self::Output, HttpException>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§