pub struct DownloadProgressParams {
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. downloadProgress
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.
Trait Implementations§
Source§impl Clone for DownloadProgressParams
impl Clone for DownloadProgressParams
Source§fn clone(&self) -> DownloadProgressParams
fn clone(&self) -> DownloadProgressParams
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 DownloadProgressParams
impl Debug for DownloadProgressParams
Source§impl<'de> Deserialize<'de> for DownloadProgressParams
impl<'de> Deserialize<'de> for DownloadProgressParams
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 PartialEq for DownloadProgressParams
impl PartialEq for DownloadProgressParams
Source§impl Serialize for DownloadProgressParams
impl Serialize for DownloadProgressParams
impl StructuralPartialEq for DownloadProgressParams
Auto Trait Implementations§
impl Freeze for DownloadProgressParams
impl RefUnwindSafe for DownloadProgressParams
impl Send for DownloadProgressParams
impl Sync for DownloadProgressParams
impl Unpin for DownloadProgressParams
impl UnsafeUnpin for DownloadProgressParams
impl UnwindSafe for DownloadProgressParams
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