[][src]Trait gotham::handler::IntoHandlerFuture

pub trait IntoHandlerFuture {
    fn into_handler_future(self) -> Box<HandlerFuture>;
}

Represents a type which can be converted into the future type returned by a Handler.

This is used to allow functions with different return types to satisfy the Handler trait bound via the generic function implementation.

Required methods

fn into_handler_future(self) -> Box<HandlerFuture>

Converts this value into a boxed future resolving to a state and response.

Loading content...

Implementations on Foreign Types

impl<T> IntoHandlerFuture for (State, T) where
    T: IntoResponse
[src]

impl IntoHandlerFuture for Box<HandlerFuture>[src]

Loading content...

Implementors

Loading content...