[−][src]Struct download_async::Downloader
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 + '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]
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>>,
Auto Trait Implementations
impl !RefUnwindSafe for Downloader
[src]
impl !Send for Downloader
[src]
impl !Sync for Downloader
[src]
impl Unpin for Downloader
[src]
impl !UnwindSafe for Downloader
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,