Function download

Source
pub async fn download<R, S, SP>(
    runtime: &SP,
    req: &R,
    stream: &mut S,
    source: Option<SourceInfo>,
) -> Result<DirResponse>
where R: Requestable + ?Sized, S: AsyncRead + AsyncWrite + Send + Unpin, SP: SleepProvider,
👎Deprecated since 0.8.1: Use send_request instead.
Expand description

Fetch a Tor directory object from a provided stream.