pub(crate) struct Job {
pub url: String,
pub folder: String,
pub name: Option<String>,
pub connections: usize,
pub headers: Vec<String>,
pub retries: u32,
}Expand description
What a download fetches, where it saves it, and how many connections it may open.
Fields§
§url: String§folder: String§name: Option<String>The file’s name, made safe before use; None names it after the address.
connections: usize§headers: Vec<String>Headers to send with each request, each written Name: value.
retries: u32How many times in a row a connection is tried again after a failure that may pass.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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