pub trait ResponseHandler {
// Required methods
fn response(&mut self, response: Response<'_>);
fn more_payload(&mut self, payload: Result<Option<&[u8]>, ()>);
}Expand description
A trait handling responses to an HTTP request.
Required Methods§
fn response(&mut self, response: Response<'_>)
fn more_payload(&mut self, payload: Result<Option<&[u8]>, ()>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".