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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".