pub struct DownloadProgressEventParamsBuilder { /* private fields */ }Expand description
Builder for DownloadProgressEventParams.
Implementations§
Source§impl DownloadProgressEventParamsBuilder
impl DownloadProgressEventParamsBuilder
Sourcepub fn total_bytes(&mut self, value: JsFloat) -> &mut Self
pub fn total_bytes(&mut self, value: JsFloat) -> &mut Self
Total expected bytes to download.
Sourcepub fn received_bytes(&mut self, value: JsFloat) -> &mut Self
pub fn received_bytes(&mut self, value: JsFloat) -> &mut Self
Total bytes received.
Sourcepub fn state(&mut self, value: DownloadProgressStateOption) -> &mut Self
pub fn state(&mut self, value: DownloadProgressStateOption) -> &mut Self
Download status.
Sourcepub fn file_path(&mut self, value: Option<String>) -> &mut Self
pub fn file_path(&mut self, value: Option<String>) -> &mut Self
If download is “completed”, provides the path of the downloaded file. Depending on the platform, it is not guaranteed to be set, nor the file is guaranteed to exist.
Sourcepub fn build(
&self,
) -> Result<DownloadProgressEventParams, DownloadProgressEventParamsBuilderError>
pub fn build( &self, ) -> Result<DownloadProgressEventParams, DownloadProgressEventParamsBuilderError>
Trait Implementations§
Source§impl Clone for DownloadProgressEventParamsBuilder
impl Clone for DownloadProgressEventParamsBuilder
Source§fn clone(&self) -> DownloadProgressEventParamsBuilder
fn clone(&self) -> DownloadProgressEventParamsBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 DownloadProgressEventParamsBuilder
impl RefUnwindSafe for DownloadProgressEventParamsBuilder
impl Send for DownloadProgressEventParamsBuilder
impl Sync for DownloadProgressEventParamsBuilder
impl Unpin for DownloadProgressEventParamsBuilder
impl UnsafeUnpin for DownloadProgressEventParamsBuilder
impl UnwindSafe for DownloadProgressEventParamsBuilder
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