Skip to main content

FetchEngine

Trait FetchEngine 

Source
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§

Source

fn fetch(&mut self, path: &str) -> Result<Box<FetchProcess>, FetchStatus>

Provided Methods§

Source

fn cancel(&mut self, reader: FetchProcess)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§