pub trait SyncClient {
type Error: Error + Send + Sync + 'static;
// Required method
fn send(&self, request: HttpRequest) -> Result<HttpResponse, Self::Error>;
}Expand description
Something that can send a request and wait for the answer.
Required Associated Types§
Required Methods§
fn send(&self, request: HttpRequest) -> Result<HttpResponse, Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".