[][src]Trait lavish::Handler

pub trait Handler<P, NP, R>: Sync + Send where
    P: Atom,
    NP: Atom,
    R: Atom
{ fn handle(&self, client: Client<P, NP, R>, params: P) -> Result<R, Error>; }

Required methods

fn handle(&self, client: Client<P, NP, R>, params: P) -> Result<R, Error>

Loading content...

Implementors

impl<P, NP, R, F> Handler<P, NP, R> for F where
    P: Atom,
    R: Atom,
    NP: Atom,
    F: Fn(Client<P, NP, R>, P) -> Result<R, Error> + Send + Sync
[src]

Loading content...