pub struct Downloader { /* private fields */ }Implementations§
Source§impl Downloader
impl Downloader
Sourcepub async fn download(self) -> Result<()>
pub async fn download(self) -> Result<()>
Examples found in repository?
examples/download.rs (line 16)
5 6 7 8 9 10 11 12 13 14 15 16 17
async fn main() -> Result<()> {
let downloader = DownloaderBuilder::new("levinion", "dotfiles", "nvim")
.on_process(|process| {
println!(
"process: {}/{}\t{:.0}%",
process.current,
process.all,
process.percent() * 100.
);
})
.build();
downloader.download().await
}Auto Trait Implementations§
impl Freeze for Downloader
impl RefUnwindSafe for Downloader
impl Send for Downloader
impl Sync for Downloader
impl Unpin 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