pub struct DownloadProgressEventBuilder { /* private fields */ }
Available on crate features
Browser
and experimental
only.Implementations§
Source§impl DownloadProgressEventBuilder
impl DownloadProgressEventBuilder
Sourcepub fn total_bytes(&mut self, v: f64) -> &mut Self
pub fn total_bytes(&mut self, v: f64) -> &mut Self
Total expected bytes to download.
Sourcepub fn received_bytes(&mut self, v: f64) -> &mut Self
pub fn received_bytes(&mut self, v: f64) -> &mut Self
Total bytes received.
Sourcepub fn state(&mut self, v: DownloadProgressEventState) -> &mut Self
pub fn state(&mut self, v: DownloadProgressEventState) -> &mut Self
Download status.
pub fn build(&mut self) -> Result<DownloadProgressEvent, &'static str>
Trait Implementations§
Source§impl Clone for DownloadProgressEventBuilder
impl Clone for DownloadProgressEventBuilder
Source§fn clone(&self) -> DownloadProgressEventBuilder
fn clone(&self) -> DownloadProgressEventBuilder
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 moreSource§impl Debug for DownloadProgressEventBuilder
impl Debug for DownloadProgressEventBuilder
Auto Trait Implementations§
impl Freeze for DownloadProgressEventBuilder
impl RefUnwindSafe for DownloadProgressEventBuilder
impl Send for DownloadProgressEventBuilder
impl Sync for DownloadProgressEventBuilder
impl Unpin for DownloadProgressEventBuilder
impl UnwindSafe for DownloadProgressEventBuilder
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