pub trait InventoryFetcher {
// Required method
fn fetch(&self, url: &str, http: &HttpConfig) -> Result<Vec<u8>>;
}Expand description
Fetch one inventory over the network.
The whole of intersphinx’s remote half lives behind this one method, so the test suite can exercise loading, caching, merging and resolution with an injected implementation and never open a socket.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".