Trait RequestWriter
pub trait RequestWriter:
Send
+ Sync
+ 'static {
// Required method
fn write_request(&self, req: Request) -> impl Future<Output = ()> + Send;
}
Expand description
A trait for writing http requests.
Required Methods§
fn write_request(&self, req: Request) -> impl Future<Output = ()> + Send
fn write_request(&self, req: Request) -> impl Future<Output = ()> + Send
Write the http request.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.