pub struct DownloadProgressEvent { /* private fields */ }
Available on crate features
Browser
and experimental
only.Expand description
Fired when download makes progress. Last call has |done| == true.
Implementations§
Source§impl DownloadProgressEvent
impl DownloadProgressEvent
pub fn builder() -> DownloadProgressEventBuilder
Sourcepub fn total_bytes(&self) -> f64
pub fn total_bytes(&self) -> f64
Total expected bytes to download.
Sourcepub fn received_bytes(&self) -> f64
pub fn received_bytes(&self) -> f64
Total bytes received.
Sourcepub fn state(&self) -> &DownloadProgressEventState
pub fn state(&self) -> &DownloadProgressEventState
Download status.
Trait Implementations§
Source§impl Clone for DownloadProgressEvent
impl Clone for DownloadProgressEvent
Source§fn clone(&self) -> DownloadProgressEvent
fn clone(&self) -> DownloadProgressEvent
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 DownloadProgressEvent
impl Debug for DownloadProgressEvent
Source§impl<'de> Deserialize<'de> for DownloadProgressEvent
impl<'de> Deserialize<'de> for DownloadProgressEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DownloadProgressEvent
impl RefUnwindSafe for DownloadProgressEvent
impl Send for DownloadProgressEvent
impl Sync for DownloadProgressEvent
impl Unpin for DownloadProgressEvent
impl UnwindSafe for DownloadProgressEvent
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