pub trait FetchEngine: Send + Sync {
// Required method
fn fetch(&mut self, path: &str) -> Result<Box<FetchProcess>, FetchStatus>;
// Provided method
fn cancel(&mut self, reader: FetchProcess) { ... }
}Required Methods§
fn fetch(&mut self, path: &str) -> Result<Box<FetchProcess>, FetchStatus>
Provided Methods§
fn cancel(&mut self, reader: FetchProcess)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".