pub trait Downloader {
// Required method
fn download(&self, url: &str) -> Result<Vec<u8>>;
}Expand description
Pluggable artifact transport, mirroring crate::client::Fetcher
but for the binary blob referenced by a manifest’s [artifact] url.
The default implementation is a no-op stub: real HTTP downloads are
waiting on a network crate being wired through the workspace
(confium-net). Tests inject a MemoryDownloader.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".