Trait warp::generic::Func

source ·
pub trait Func<Args> {
    type Output;

    // Required method
    fn call(&self, args: Args) -> Self::Output;
}

Required Associated Types§

Required Methods§

source

fn call(&self, args: Args) -> Self::Output

Implementors§

source§

impl<F, R> Func<()> for F
where F: Fn() -> R,

§

type Output = R

source§

impl<F, R> Func<Rejection> for F
where F: Fn(Rejection) -> R,

§

type Output = R

source§

impl<F, R, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<Product<T1, Product<T2, Product<T3, Product<T4, Product<T5, Product<T6, Product<T7, Product<T8, Product<T9, Product<T10, Product<T11, Product<T12, Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>>>>>>>>>>>>>> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<(T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> for F
where F: Fn(T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<Product<T2, Product<T3, Product<T4, Product<T5, Product<T6, Product<T7, Product<T8, Product<T9, Product<T10, Product<T11, Product<T12, Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>>>>>>>>>>>>> for F
where F: Fn(T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<(T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> for F
where F: Fn(T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<Product<T3, Product<T4, Product<T5, Product<T6, Product<T7, Product<T8, Product<T9, Product<T10, Product<T11, Product<T12, Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>>>>>>>>>>>> for F
where F: Fn(T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<(T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> for F
where F: Fn(T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<Product<T4, Product<T5, Product<T6, Product<T7, Product<T8, Product<T9, Product<T10, Product<T11, Product<T12, Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>>>>>>>>>>> for F
where F: Fn(T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<(T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> for F
where F: Fn(T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<Product<T5, Product<T6, Product<T7, Product<T8, Product<T9, Product<T10, Product<T11, Product<T12, Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>>>>>>>>>> for F
where F: Fn(T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<(T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> for F
where F: Fn(T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<Product<T6, Product<T7, Product<T8, Product<T9, Product<T10, Product<T11, Product<T12, Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>>>>>>>>> for F
where F: Fn(T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<(T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)> for F
where F: Fn(T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<Product<T7, Product<T8, Product<T9, Product<T10, Product<T11, Product<T12, Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>>>>>>>> for F
where F: Fn(T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<(T8, T9, T10, T11, T12, T13, T14, T15, T16)> for F
where F: Fn(T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T8, T9, T10, T11, T12, T13, T14, T15, T16> Func<Product<T8, Product<T9, Product<T10, Product<T11, Product<T12, Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>>>>>>> for F
where F: Fn(T8, T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T9, T10, T11, T12, T13, T14, T15, T16> Func<(T9, T10, T11, T12, T13, T14, T15, T16)> for F
where F: Fn(T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T9, T10, T11, T12, T13, T14, T15, T16> Func<Product<T9, Product<T10, Product<T11, Product<T12, Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>>>>>> for F
where F: Fn(T9, T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T10, T11, T12, T13, T14, T15, T16> Func<(T10, T11, T12, T13, T14, T15, T16)> for F
where F: Fn(T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T10, T11, T12, T13, T14, T15, T16> Func<Product<T10, Product<T11, Product<T12, Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>>>>> for F
where F: Fn(T10, T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T11, T12, T13, T14, T15, T16> Func<(T11, T12, T13, T14, T15, T16)> for F
where F: Fn(T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T11, T12, T13, T14, T15, T16> Func<Product<T11, Product<T12, Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>>>> for F
where F: Fn(T11, T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T12, T13, T14, T15, T16> Func<(T12, T13, T14, T15, T16)> for F
where F: Fn(T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T12, T13, T14, T15, T16> Func<Product<T12, Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>>> for F
where F: Fn(T12, T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T13, T14, T15, T16> Func<(T13, T14, T15, T16)> for F
where F: Fn(T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T13, T14, T15, T16> Func<Product<T13, Product<T14, Product<T15, Product<T16, ()>>>>> for F
where F: Fn(T13, T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T14, T15, T16> Func<(T14, T15, T16)> for F
where F: Fn(T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T14, T15, T16> Func<Product<T14, Product<T15, Product<T16, ()>>>> for F
where F: Fn(T14, T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T15, T16> Func<(T15, T16)> for F
where F: Fn(T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T15, T16> Func<Product<T15, Product<T16, ()>>> for F
where F: Fn(T15, T16) -> R,

§

type Output = R

source§

impl<F, R, T16> Func<(T16,)> for F
where F: Fn(T16) -> R,

§

type Output = R

source§

impl<F, R, T16> Func<Product<T16, ()>> for F
where F: Fn(T16) -> R,

§

type Output = R

source§

impl<R: Reply> Func<(R,)> for WithDefaultHeader_

source§

impl<R: Reply> Func<(R,)> for WithHeader_

source§

impl<R: Reply> Func<(R,)> for WithHeaders_