pub trait UiBundleFetcher: Send + Sync {
// Required method
fn fetch_bytes(&self, url: &str) -> Result<Vec<u8>>;
}Expand description
Abstraction over the network layer so tests can inject a fake without making real HTTP calls.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".