Skip to main content

FetchService

Trait FetchService 

Source
pub trait FetchService {
    // Required method
    fn fetch(&self, url: &str) -> Result<Vec<u8>>;
}
Expand description

HTTP(S) fetches made by the host (net.fetch).

Required Methods§

Source

fn fetch(&self, url: &str) -> Result<Vec<u8>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§