Skip to main content

ContentFetcher

Trait ContentFetcher 

Source
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§

Source

fn fetch(&self, url: &str) -> Result<String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§