pub trait Fetch:
Clone
+ Send
+ Sync
+ 'static {
type Result: Future<Item = Response, Error = Error> + Send + 'static;
// Required methods
fn fetch(&self, request: Request, abort: Abort) -> Self::Result;
fn get(&self, url: &str, abort: Abort) -> Self::Result;
fn post(&self, url: &str, abort: Abort) -> Self::Result;
}
Expand description
Types which retrieve content from some URL.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.