pub trait ExternalFetcher: Send + Sync {
// Required method
fn fetch(&self, url: &str) -> Result<String, String>;
}Expand description
Reads one URL scheme for a build that was compiled without it.
Language bindings register these at runtime from add-on packages
(the Python wheel ships local and HTTPS support only, and
pip install 'opssignal[aws]' adds an S3 fetcher), so the base
package stays small. Implementations may block; they run on their
own thread and return the raw, uninterpolated file text.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".