pub trait ContentFetcher: Send + Sync {
// Required method
fn fetch(&self, url: &str) -> Result<String>;
}Expand description
Trait abstracting HTTP fetching so callers can provide their own implementation. This keeps sqz fully offline (Requirement 23).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".