#[non_exhaustive]pub struct DownloadOptions {
pub output_dir: PathBuf,
pub retry: RetryPolicy,
pub stream_selection: StreamSelection,
pub resume: bool,
pub include_subtitles: bool,
pub include_danmaku: bool,
pub mux: MuxOptions,
pub download_idle_timeout: Option<Duration>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.output_dir: PathBuf§retry: RetryPolicy§stream_selection: StreamSelection§resume: bool§include_subtitles: bool§include_danmaku: bool§mux: MuxOptions§download_idle_timeout: Option<Duration>Implementations§
Source§impl DownloadOptions
impl DownloadOptions
pub fn new(output_dir: impl Into<PathBuf>) -> Self
pub fn with_retry_policy(self, retry: RetryPolicy) -> Self
pub fn with_stream_selection(self, stream_selection: StreamSelection) -> Self
pub fn with_resume(self, resume: bool) -> Self
pub fn with_subtitles(self, include_subtitles: bool) -> Self
pub fn with_danmaku(self, include_danmaku: bool) -> Self
pub fn with_mux(self, mux: MuxOptions) -> Self
pub fn with_download_idle_timeout( self, download_idle_timeout: Option<Duration>, ) -> Self
Trait Implementations§
Source§impl Clone for DownloadOptions
impl Clone for DownloadOptions
Source§fn clone(&self) -> DownloadOptions
fn clone(&self) -> DownloadOptions
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 moreSource§impl Debug for DownloadOptions
impl Debug for DownloadOptions
Auto Trait Implementations§
impl Freeze for DownloadOptions
impl RefUnwindSafe for DownloadOptions
impl Send for DownloadOptions
impl Sync for DownloadOptions
impl Unpin for DownloadOptions
impl UnsafeUnpin for DownloadOptions
impl UnwindSafe for DownloadOptions
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