pub trait RequestTrait: Send + Debug {
type RequestResult: Sized;
// 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: Sized
type RequestResult: Sized
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.