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§
Required Methods§
Sourcefn 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,
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