pub struct HttpDownloadConfig {Show 18 fields
pub set_len_in_advance: bool,
pub download_connection_count: NonZeroU8,
pub chunk_size: NonZeroUsize,
pub chunks_send_interval: Option<Duration>,
pub save_dir: PathBuf,
pub file_name: String,
pub open_option: Box<dyn Fn(&mut OpenOptions) + Send + Sync + 'static>,
pub create_dir: bool,
pub url: Arc<Url>,
pub etag: Option<ETag>,
pub request_retry_count: u8,
pub header_map: HeaderMap,
pub downloaded_len_send_interval: Option<Duration>,
pub strict_check_accept_ranges: bool,
pub http_request_configure: Option<Box<dyn Fn(Request) -> Request + Send + Sync + 'static>>,
pub cancel_token: Option<CancellationToken>,
pub handle_redirection: HttpRedirectionHandle,
pub use_browser_user_agent: bool,
}Fields§
§set_len_in_advance: bool§download_connection_count: NonZeroU8§chunk_size: NonZeroUsize§chunks_send_interval: Option<Duration>§save_dir: PathBuf§file_name: String§open_option: Box<dyn Fn(&mut OpenOptions) + Send + Sync + 'static>§create_dir: bool§url: Arc<Url>§etag: Option<ETag>§request_retry_count: u8§header_map: HeaderMap§downloaded_len_send_interval: Option<Duration>§strict_check_accept_ranges: bool§http_request_configure: Option<Box<dyn Fn(Request) -> Request + Send + Sync + 'static>>§cancel_token: Option<CancellationToken>§handle_redirection: HttpRedirectionHandle§use_browser_user_agent: boolImplementations§
Auto Trait Implementations§
impl !Freeze for HttpDownloadConfig
impl !RefUnwindSafe for HttpDownloadConfig
impl Send for HttpDownloadConfig
impl Sync for HttpDownloadConfig
impl Unpin for HttpDownloadConfig
impl !UnwindSafe for HttpDownloadConfig
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