[][src]Trait tough::Transport

pub trait Transport {
    type Stream: Read;
    type Error: Error + Send + Sync + 'static;
    fn fetch(&self, url: Url) -> Result<Self::Stream, Self::Error>;
}

Associated Types

type Stream: Read

type Error: Error + Send + Sync + 'static

Loading content...

Required methods

fn fetch(&self, url: Url) -> Result<Self::Stream, Self::Error>

Loading content...

Implementors

impl Transport for FilesystemTransport[src]

type Stream = File

type Error = Error

Loading content...