[][src]Trait now_lambda::Handler

pub trait Handler<R, B, E> {
    fn run(&mut self, event: Request<B>) -> Result<R, E>;
}

Functions acting as Now Lambda handlers must conform to this type.

Required methods

fn run(&mut self, event: Request<B>) -> Result<R, E>

Method to execute the handler function

Loading content...

Implementors

impl<Function, R, B, E> Handler<R, B, E> for Function where
    Function: FnMut(Request<B>) -> Result<R, E>, 
[src]

Loading content...