pub trait TileFetcher: Sync {
// Required method
fn fetch(&self, url: &str) -> Result<FetchOutcome, GeolithError>;
}Expand description
A tile HTTP client. Trait-shaped so tests can stub responses.
Required Methods§
Sourcefn fetch(&self, url: &str) -> Result<FetchOutcome, GeolithError>
fn fetch(&self, url: &str) -> Result<FetchOutcome, GeolithError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".