pub trait IntoHandlerFuture {
    // Required method
    fn into_handler_future(self) -> Pin<Box<HandlerFuture>>;
}
Expand description

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§

source

fn into_handler_future(self) -> Pin<Box<HandlerFuture>>

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

Implementations on Foreign Types§

source§

impl IntoHandlerFuture for Pin<Box<HandlerFuture>>

source§

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

Implementors§