pub struct DownloadProgressEvent {
pub guid: String,
pub total_bytes: f64,
pub received_bytes: f64,
pub state: DownloadProgressState,
}Expand description
Fired when download makes progress. Last call has |done| == true. Deprecated. Use Browser.downloadProgress instead.
Deprecated in the protocol.
Experimental: may change without notice.
Payload of the Page.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.
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