pub struct DownloadProgressEvent {
pub guid: String,
pub total_bytes: f64,
pub received_bytes: f64,
pub state: DownloadProgressState,
pub file_path: Option<String>,
}Expand description
Fired when download makes progress. Last call has |done| == true.
Experimental: may change without notice.
Payload of the Browser.downloadProgress event.
Fields§
§guid: StringGlobal unique identifier of the download.
total_bytes: f64Total expected bytes to download.
received_bytes: f64Total bytes received.
state: DownloadProgressStateDownload status.
file_path: Option<String>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.
Experimental: may change without notice.
Trait Implementations§
Source§impl Clone for DownloadProgressEvent
impl Clone for DownloadProgressEvent
Source§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
Source§impl Event for DownloadProgressEvent
impl Event for DownloadProgressEvent
Source§impl PartialEq for DownloadProgressEvent
impl PartialEq for DownloadProgressEvent
Source§impl Serialize for DownloadProgressEvent
impl Serialize for DownloadProgressEvent
impl StructuralPartialEq for DownloadProgressEvent
Auto Trait Implementations§
impl Forget for DownloadProgressEvent
impl Freeze for DownloadProgressEvent
impl RefUnwindSafe for DownloadProgressEvent
impl Send for DownloadProgressEvent
impl Sync for DownloadProgressEvent
impl Unpin for DownloadProgressEvent
impl UnsafeUnpin 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