pub trait TryFromIncomingRequest {
    type Error;

    // Required method
    fn try_from_incoming_request<'async_trait>(
        value: IncomingRequest
    ) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>
       where Self: Sized + 'async_trait;
}
Expand description

A trait for trying to convert from an IncomingRequest to the implementing type

Required Associated Types§

source

type Error

The error if conversion fails

Required Methods§

source

fn try_from_incoming_request<'async_trait>( value: IncomingRequest ) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>
where Self: Sized + 'async_trait,

Try to turn the IncomingRequest into the implementing type

Implementors§