Skip to main content

Net

Trait Net 

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

One HTTP GET. Ok(None) is a 404; every other failure is Err.

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Net for Http