pub struct Download {
pub url: Expr,
pub folder: Expr,
pub name: Expr,
pub connections: Expr,
pub headers: Expr,
pub retries: Expr,
pub bindings: Vec<(DownloadField, Place)>,
}Expand description
A download(…) call: fetches url into the folder folder on another thread, as
name, or after the address when that is "", over up to connections connections
at once, sending headers and trying failed connections again up to retries times,
writing how it is going to each bound place:
always its percentage done and a description of where it stands, and the other fields
the call binds.
Fields§
§url: Expr§folder: Expr§name: Expr§connections: Expr§headers: ExprA [string] of headers, each written Name: value.
retries: Expr§bindings: Vec<(DownloadField, Place)>In the order the function table declares them.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Download
impl !Sync for Download
impl Freeze for Download
impl RefUnwindSafe for Download
impl Unpin for Download
impl UnsafeUnpin for Download
impl UnwindSafe for Download
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