pub struct DownloadParams {
pub source: DownloadSource,
pub archive_path: Option<PathBuf>,
pub unarchive_path: Option<PathBuf>,
pub expected_sha256: Option<String>,
pub archive_format: ArchiveFormat,
pub max_connections: Option<usize>,
pub min_segment_size: Option<u64>,
pub wait_mode: WaitMode,
pub dry_run: bool,
pub force: bool,
}Fields§
§source: DownloadSource§archive_path: Option<PathBuf>§unarchive_path: Option<PathBuf>§expected_sha256: Option<String>§archive_format: ArchiveFormat§max_connections: Option<usize>§min_segment_size: Option<u64>§wait_mode: WaitMode§dry_run: bool§force: boolImplementations§
Source§impl DownloadParams
impl DownloadParams
pub fn new(source: impl Into<DownloadSource>) -> Self
Trait Implementations§
Source§impl Clone for DownloadParams
impl Clone for DownloadParams
Source§fn clone(&self) -> DownloadParams
fn clone(&self) -> DownloadParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DownloadParams
impl RefUnwindSafe for DownloadParams
impl Send for DownloadParams
impl Sync for DownloadParams
impl Unpin for DownloadParams
impl UnsafeUnpin for DownloadParams
impl UnwindSafe for DownloadParams
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