Skip to main content

SyncClient

Trait SyncClient 

Source
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§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

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".

Implementors§