pub trait Fetchable {
type Reader: Read;
type Error;
// Required method
fn reader_for(self, f: &mut Fetcher) -> Result<Self::Reader, Self::Error>;
}
Expand description
Something that can be turned into a reader given a fetcher. Example is a URL which can be turned into a reader by sending a GET request, or a file path which can be turned into a reader by just opening the file.