pub enum Downloader {
Curl,
Wget,
PowerShell,
}Expand description
A program that can move bytes off a URL.
Variants§
Curl
curl, which is on every Unix we support and on Windows since 1803.
Wget
wget, which is what a minimal Linux image has when it has one of the two.
PowerShell
PowerShell’s Invoke-WebRequest, which is the answer on a Windows that predates the bundled
curl and on one where it was removed.
Implementations§
Source§impl Downloader
impl Downloader
Sourcepub const ORDER: [Downloader; 3]
pub const ORDER: [Downloader; 3]
The order they are tried in, which is section 13.8’s order.
Sourcepub fn argv(self, url: &str, into: &Path) -> Vec<String>
pub fn argv(self, url: &str, into: &Path) -> Vec<String>
The command line that downloads url to into.
Quiet, because a compiler driver that prints a progress bar is printing it into a build log that nobody is watching, and loud about failures, because the message a downloader writes is the only thing that says whether the URL was wrong or the network was.
Trait Implementations§
Source§impl Clone for Downloader
impl Clone for Downloader
impl Copy for Downloader
Source§impl Debug for Downloader
impl Debug for Downloader
impl Eq for Downloader
Source§impl PartialEq for Downloader
impl PartialEq for Downloader
impl StructuralPartialEq for Downloader
Auto Trait Implementations§
impl Freeze for Downloader
impl RefUnwindSafe for Downloader
impl Send for Downloader
impl Sync for Downloader
impl Unpin for Downloader
impl UnsafeUnpin for Downloader
impl UnwindSafe for Downloader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.