Struct luminal_handler::HandlerFn [] [src]

pub struct HandlerFn<F> where
    F: Fn(Request<Body>) -> Result<LuminalFuture, Response>, 
{ /* fields omitted */ }

Holds a function to dispatch to via its impl of Handler<E>.

Trait Implementations

impl<F> Handler for HandlerFn<F> where
    F: Fn(Request<Body>) -> Result<LuminalFuture, Response>, 
[src]

Auto Trait Implementations

impl<F> Send for HandlerFn<F> where
    F: Send

impl<F> Sync for HandlerFn<F> where
    F: Sync