[][src]Trait jsonrpc_v2::FromRequest

pub trait FromRequest<S>: Sized {
    type Result: IntoFuture<Item = Self, Error = Error>;
    fn from_request(req: &RequestObjectWithState<S>) -> Self::Result;
}

A trait to extract data from the request

Associated Types

type Result: IntoFuture<Item = Self, Error = Error>

Loading content...

Required methods

fn from_request(req: &RequestObjectWithState<S>) -> Self::Result

Loading content...

Implementations on Foreign Types

impl<S> FromRequest<S> for ()[src]

type Result = Result<Self, Error>

impl<S, T1> FromRequest<S> for (T1,) where
    T1: FromRequest<S>,
    <<T1 as FromRequest<S>>::Result as IntoFuture>::Future: 'static, 
[src]

type Result = Box<dyn Future<Item = (T1,), Error = Error>>

impl<S, T1, T2> FromRequest<S> for (T1, T2) where
    T1: FromRequest<S>,
    T2: FromRequest<S>,
    <<T1 as FromRequest<S>>::Result as IntoFuture>::Future: 'static,
    <<T2 as FromRequest<S>>::Result as IntoFuture>::Future: 'static, 
[src]

type Result = Box<dyn Future<Item = (T1, T2), Error = Error>>

impl<S, T1, T2, T3> FromRequest<S> for (T1, T2, T3) where
    T1: FromRequest<S>,
    T2: FromRequest<S>,
    T3: FromRequest<S>,
    <<T1 as FromRequest<S>>::Result as IntoFuture>::Future: 'static,
    <<T2 as FromRequest<S>>::Result as IntoFuture>::Future: 'static,
    <<T3 as FromRequest<S>>::Result as IntoFuture>::Future: 'static, 
[src]

type Result = Box<dyn Future<Item = (T1, T2, T3), Error = Error>>

Loading content...

Implementors

impl<S> FromRequest<S> for State<S>[src]

type Result = Result<Self, Error>

impl<S, T: DeserializeOwned> FromRequest<S> for Params<T>[src]

type Result = Result<Self, Error>

Loading content...