Trait viz_core::Extract[][src]

pub trait Extract: Sized {
    type Error: Into<Response> + Into<Error>;
    fn extract<'a>(
        cx: &'a mut Context
    ) -> BoxFuture<'a, Result<Self, Self::Error>>; }

Extract

Associated Types

Loading content...

Required methods

fn extract<'a>(cx: &'a mut Context) -> BoxFuture<'a, Result<Self, Self::Error>>[src]

Loading content...

Implementations on Foreign Types

impl<T> Extract for Option<T> where
    T: Extract,
    T::Error: Into<Error>, 
[src]

type Error = T::Error

impl<A, B, C, D, E, F, G, H, I, J, K, L> Extract for (A, B, C, D, E, F, G, H, I, J, K, L) where
    A: Extract + Send,
    B: Extract + Send,
    C: Extract + Send,
    D: Extract + Send,
    E: Extract + Send,
    F: Extract + Send,
    G: Extract + Send,
    H: Extract + Send,
    I: Extract + Send,
    J: Extract + Send,
    K: Extract + Send,
    L: Extract + Send,
    A::Error: Into<Error> + Into<Response> + Send + 'static,
    B::Error: Into<Error> + Into<Response> + Send + 'static,
    C::Error: Into<Error> + Into<Response> + Send + 'static,
    D::Error: Into<Error> + Into<Response> + Send + 'static,
    E::Error: Into<Error> + Into<Response> + Send + 'static,
    F::Error: Into<Error> + Into<Response> + Send + 'static,
    G::Error: Into<Error> + Into<Response> + Send + 'static,
    H::Error: Into<Error> + Into<Response> + Send + 'static,
    I::Error: Into<Error> + Into<Response> + Send + 'static,
    J::Error: Into<Error> + Into<Response> + Send + 'static,
    K::Error: Into<Error> + Into<Response> + Send + 'static,
    L::Error: Into<Error> + Into<Response> + Send + 'static, 
[src]

type Error = Error

impl<B, C, D, E, F, G, H, I, J, K, L> Extract for (B, C, D, E, F, G, H, I, J, K, L) where
    B: Extract + Send,
    C: Extract + Send,
    D: Extract + Send,
    E: Extract + Send,
    F: Extract + Send,
    G: Extract + Send,
    H: Extract + Send,
    I: Extract + Send,
    J: Extract + Send,
    K: Extract + Send,
    L: Extract + Send,
    B::Error: Into<Error> + Into<Response> + Send + 'static,
    C::Error: Into<Error> + Into<Response> + Send + 'static,
    D::Error: Into<Error> + Into<Response> + Send + 'static,
    E::Error: Into<Error> + Into<Response> + Send + 'static,
    F::Error: Into<Error> + Into<Response> + Send + 'static,
    G::Error: Into<Error> + Into<Response> + Send + 'static,
    H::Error: Into<Error> + Into<Response> + Send + 'static,
    I::Error: Into<Error> + Into<Response> + Send + 'static,
    J::Error: Into<Error> + Into<Response> + Send + 'static,
    K::Error: Into<Error> + Into<Response> + Send + 'static,
    L::Error: Into<Error> + Into<Response> + Send + 'static, 
[src]

type Error = Error

impl<C, D, E, F, G, H, I, J, K, L> Extract for (C, D, E, F, G, H, I, J, K, L) where
    C: Extract + Send,
    D: Extract + Send,
    E: Extract + Send,
    F: Extract + Send,
    G: Extract + Send,
    H: Extract + Send,
    I: Extract + Send,
    J: Extract + Send,
    K: Extract + Send,
    L: Extract + Send,
    C::Error: Into<Error> + Into<Response> + Send + 'static,
    D::Error: Into<Error> + Into<Response> + Send + 'static,
    E::Error: Into<Error> + Into<Response> + Send + 'static,
    F::Error: Into<Error> + Into<Response> + Send + 'static,
    G::Error: Into<Error> + Into<Response> + Send + 'static,
    H::Error: Into<Error> + Into<Response> + Send + 'static,
    I::Error: Into<Error> + Into<Response> + Send + 'static,
    J::Error: Into<Error> + Into<Response> + Send + 'static,
    K::Error: Into<Error> + Into<Response> + Send + 'static,
    L::Error: Into<Error> + Into<Response> + Send + 'static, 
[src]

type Error = Error

impl<D, E, F, G, H, I, J, K, L> Extract for (D, E, F, G, H, I, J, K, L) where
    D: Extract + Send,
    E: Extract + Send,
    F: Extract + Send,
    G: Extract + Send,
    H: Extract + Send,
    I: Extract + Send,
    J: Extract + Send,
    K: Extract + Send,
    L: Extract + Send,
    D::Error: Into<Error> + Into<Response> + Send + 'static,
    E::Error: Into<Error> + Into<Response> + Send + 'static,
    F::Error: Into<Error> + Into<Response> + Send + 'static,
    G::Error: Into<Error> + Into<Response> + Send + 'static,
    H::Error: Into<Error> + Into<Response> + Send + 'static,
    I::Error: Into<Error> + Into<Response> + Send + 'static,
    J::Error: Into<Error> + Into<Response> + Send + 'static,
    K::Error: Into<Error> + Into<Response> + Send + 'static,
    L::Error: Into<Error> + Into<Response> + Send + 'static, 
[src]

type Error = Error

impl<E, F, G, H, I, J, K, L> Extract for (E, F, G, H, I, J, K, L) where
    E: Extract + Send,
    F: Extract + Send,
    G: Extract + Send,
    H: Extract + Send,
    I: Extract + Send,
    J: Extract + Send,
    K: Extract + Send,
    L: Extract + Send,
    E::Error: Into<Error> + Into<Response> + Send + 'static,
    F::Error: Into<Error> + Into<Response> + Send + 'static,
    G::Error: Into<Error> + Into<Response> + Send + 'static,
    H::Error: Into<Error> + Into<Response> + Send + 'static,
    I::Error: Into<Error> + Into<Response> + Send + 'static,
    J::Error: Into<Error> + Into<Response> + Send + 'static,
    K::Error: Into<Error> + Into<Response> + Send + 'static,
    L::Error: Into<Error> + Into<Response> + Send + 'static, 
[src]

type Error = Error

impl<F, G, H, I, J, K, L> Extract for (F, G, H, I, J, K, L) where
    F: Extract + Send,
    G: Extract + Send,
    H: Extract + Send,
    I: Extract + Send,
    J: Extract + Send,
    K: Extract + Send,
    L: Extract + Send,
    F::Error: Into<Error> + Into<Response> + Send + 'static,
    G::Error: Into<Error> + Into<Response> + Send + 'static,
    H::Error: Into<Error> + Into<Response> + Send + 'static,
    I::Error: Into<Error> + Into<Response> + Send + 'static,
    J::Error: Into<Error> + Into<Response> + Send + 'static,
    K::Error: Into<Error> + Into<Response> + Send + 'static,
    L::Error: Into<Error> + Into<Response> + Send + 'static, 
[src]

type Error = Error

impl<G, H, I, J, K, L> Extract for (G, H, I, J, K, L) where
    G: Extract + Send,
    H: Extract + Send,
    I: Extract + Send,
    J: Extract + Send,
    K: Extract + Send,
    L: Extract + Send,
    G::Error: Into<Error> + Into<Response> + Send + 'static,
    H::Error: Into<Error> + Into<Response> + Send + 'static,
    I::Error: Into<Error> + Into<Response> + Send + 'static,
    J::Error: Into<Error> + Into<Response> + Send + 'static,
    K::Error: Into<Error> + Into<Response> + Send + 'static,
    L::Error: Into<Error> + Into<Response> + Send + 'static, 
[src]

type Error = Error

impl<H, I, J, K, L> Extract for (H, I, J, K, L) where
    H: Extract + Send,
    I: Extract + Send,
    J: Extract + Send,
    K: Extract + Send,
    L: Extract + Send,
    H::Error: Into<Error> + Into<Response> + Send + 'static,
    I::Error: Into<Error> + Into<Response> + Send + 'static,
    J::Error: Into<Error> + Into<Response> + Send + 'static,
    K::Error: Into<Error> + Into<Response> + Send + 'static,
    L::Error: Into<Error> + Into<Response> + Send + 'static, 
[src]

type Error = Error

impl<I, J, K, L> Extract for (I, J, K, L) where
    I: Extract + Send,
    J: Extract + Send,
    K: Extract + Send,
    L: Extract + Send,
    I::Error: Into<Error> + Into<Response> + Send + 'static,
    J::Error: Into<Error> + Into<Response> + Send + 'static,
    K::Error: Into<Error> + Into<Response> + Send + 'static,
    L::Error: Into<Error> + Into<Response> + Send + 'static, 
[src]

type Error = Error

impl<J, K, L> Extract for (J, K, L) where
    J: Extract + Send,
    K: Extract + Send,
    L: Extract + Send,
    J::Error: Into<Error> + Into<Response> + Send + 'static,
    K::Error: Into<Error> + Into<Response> + Send + 'static,
    L::Error: Into<Error> + Into<Response> + Send + 'static, 
[src]

type Error = Error

impl<K, L> Extract for (K, L) where
    K: Extract + Send,
    L: Extract + Send,
    K::Error: Into<Error> + Into<Response> + Send + 'static,
    L::Error: Into<Error> + Into<Response> + Send + 'static, 
[src]

type Error = Error

impl<L> Extract for (L,) where
    L: Extract + Send,
    L::Error: Into<Error> + Into<Response> + Send + 'static, 
[src]

type Error = Error

impl Extract for Arc<Config>[src]

type Error = Error

Loading content...

Implementors

impl Extract for Cookies[src]

type Error = CookiesError

impl Extract for Multipart[src]

type Error = PayloadError

impl<T> Extract for Form<T> where
    T: DeserializeOwned + Send + Sync
[src]

type Error = PayloadError

impl<T> Extract for Json<T> where
    T: DeserializeOwned + Send + Sync
[src]

type Error = PayloadError

impl<T> Extract for Params<T> where
    T: DeserializeOwned
[src]

type Error = ParamsError

impl<T> Extract for Query<T> where
    T: DeserializeOwned
[src]

type Error = PayloadError

impl<T> Extract for State<T> where
    T: Clone + Send + Sync + 'static, 
[src]

type Error = Error

impl<T> Extract for Result<T, T::Error> where
    T: Extract
[src]

type Error = T::Error

Loading content...