pub trait RequestTrait {
type RequestResult;
// Required method
fn send(&mut self) -> Self::RequestResult;
}Expand description
Trait representing an HTTP request.
Provides a method for sending an HTTP request and obtaining the result.
Required Associated Types§
Sourcetype RequestResult
type RequestResult
Associated type for the result of the HTTP request.
Required Methods§
Sourcefn send(&mut self) -> Self::RequestResult
fn send(&mut self) -> Self::RequestResult
Sends the HTTP request.
- Returns: The associated type
RequestResultwhich represents the outcome of the HTTP request.