Struct download_async::Downloader[][src]

pub struct Downloader { /* fields omitted */ }

Implementations

impl Downloader[src]

pub fn new() -> Self[src]

pub fn use_uri(&mut self, uri: Uri) -> &mut Self[src]

pub fn headers(&mut self) -> Option<&mut HeaderMap<HeaderValue>>[src]

pub fn use_sockets(&mut self, sockets: SocketAddrs) -> &mut Self[src]

pub fn allow_http(&mut self) -> &mut Self[src]

pub fn use_progress<T: Progress + Send + 'static>(
    &mut self,
    progress: T
) -> &mut Self
[src]

pub async fn download<T: HttpBody + Send + 'static>(
    self,
    body: T,
    to: &mut impl Write
) -> Result<Parts, Box<dyn Error + Send + Sync>> where
    T::Data: Send,
    T::Error: Into<Box<dyn Error + Send + Sync>>, 
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.