pub trait TryFromIncomingResponse {
type Error;
// Required method
fn try_from_incoming_response<'async_trait>(
resp: IncomingResponse,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>
where Self: Sized + 'async_trait;
}
Expand description
A trait for converting from an IncomingRequest
Required Associated Types§
Required Methods§
Sourcefn try_from_incoming_response<'async_trait>(
resp: IncomingResponse,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
fn try_from_incoming_response<'async_trait>(
resp: IncomingResponse,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
Turn the IncomingResponse
into the type