pub trait RequestTrait: Send + Debug {
type RequestResult: Sized;
// Required method
fn send(&mut self) -> Self::RequestResult;
}
Expand description
Synchronous HTTP request trait.
Defines the interface for sending synchronous HTTP requests.
Required Associated Types§
Sourcetype RequestResult: Sized
type RequestResult: Sized
The result type of the synchronous request.
Required Methods§
Sourcefn send(&mut self) -> Self::RequestResult
fn send(&mut self) -> Self::RequestResult
Sends the HTTP request synchronously.
§Returns
Self::RequestResult
- The result of the synchronous request.