pub trait HttpTryFuture: Sealed {
type Body: Body;
type Error;
// Required method
fn try_poll(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<Response<Self::Body>, Self::Error>>;
}Expand description
An HTTP response future.
This is just an alias for Future introduced to reduce the number of type parameters.
Required Associated Types§
Required Methods§
fn try_poll( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<Response<Self::Body>, Self::Error>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".