Trait lambda_runtime::Handler[][src]

pub trait Handler<A, B> {
    type Error;
    type Fut: Future<Output = Result<B, Self::Error>>;
    fn call(&self, event: A, context: Context) -> Self::Fut;
}
Expand description

A trait describing an asynchronous function A to B.

Associated Types

Errors returned by this handler.

Response of this handler.

Required methods

Handle the incoming event.

Implementors