pub struct Request<T> {
pub id: DownloadId,
pub url: String,
pub folder: String,
pub name: String,
pub connections: i64,
pub headers: Vec<String>,
pub retries: i64,
pub targets: T,
}Expand description
A download an action asked for, started once the action has finished. targets says
where its reports go, in whatever terms the app uses.
Fields§
§id: DownloadId§url: String§folder: String§name: StringThe name to save the file as, made safe first; "" names it after the address.
connections: i64How many connections the call asked for; any number below one asks for one.
headers: Vec<String>Headers to send with each request, each written Name: value.
retries: i64How many times in a row a failed connection is tried again, when the failure may pass; any number below zero asks for none.
targets: TTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Request<T>where
T: Freeze,
impl<T> RefUnwindSafe for Request<T>where
T: RefUnwindSafe,
impl<T> Send for Request<T>where
T: Send,
impl<T> Sync for Request<T>where
T: Sync,
impl<T> Unpin for Request<T>where
T: Unpin,
impl<T> UnsafeUnpin for Request<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Request<T>where
T: UnwindSafe,
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