pub trait ResourceFuture {
type Body;
// Required method
fn poll_response(
&mut self,
request: &Request<()>,
) -> Poll<Response<Self::Body>, Error>;
}Expand description
A specialized response future returned by resources.
The ResourceFuture allows passing the HTTP response into the future when
polling.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".