pub trait Resolver {
// Required method
fn resolve(&self, reference: &str, max_bytes: usize) -> Resolution;
}Expand description
The host’s synchronous byte provider. reference is opaque: it is never
an instruction to fetch a URL. The host bounds its read by max_bytes
before allocating.
Required Methods§
fn resolve(&self, reference: &str, max_bytes: usize) -> Resolution
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".