Skip to main content

Fetch

Trait Fetch 

Source
pub trait Fetch: Send + Sync {
    // Required method
    fn get(&self, url: &str) -> Result<Vec<u8>, NetError>;
}
Expand description

Something that can GET a URL.

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§