[][src]Trait jsonrpc_v2::Method

pub trait Method<S>: 'static + Send + Sync {
    fn handle(
        &self,
        req: &WrappedRequestObject<S>
    ) -> Box<dyn Future<Item = Box<dyn ErasedSerialize + Send>, Error = Error>>; }

Required methods

fn handle(
    &self,
    req: &WrappedRequestObject<S>
) -> Box<dyn Future<Item = Box<dyn ErasedSerialize + Send>, Error = Error>>

Loading content...

Implementors

impl<T, S, P> Method<S> for With<T, S, P> where
    T: FromRequest<S> + 'static,
    P: DeserializeOwned,
    P: 'static + Send + Sync,
    S: 'static + Send + Sync
[src]

Loading content...