pub struct DownloadProgressEventParams {
pub guid: String,
pub total_bytes: JsFloat,
pub received_bytes: JsFloat,
pub state: DownloadProgressStateOption,
pub file_path: Option<String>,
}Fields§
§guid: StringGlobal unique identifier of the download.
total_bytes: JsFloatTotal expected bytes to download.
received_bytes: JsFloatTotal bytes received.
state: DownloadProgressStateOptionDownload 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 DownloadProgressEventParams
impl Clone for DownloadProgressEventParams
Source§fn clone(&self) -> DownloadProgressEventParams
fn clone(&self) -> DownloadProgressEventParams
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 DownloadProgressEventParams
impl Debug for DownloadProgressEventParams
Source§impl<'de> Deserialize<'de> for DownloadProgressEventParams
impl<'de> Deserialize<'de> for DownloadProgressEventParams
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
impl StructuralPartialEq for DownloadProgressEventParams
Auto Trait Implementations§
impl Freeze for DownloadProgressEventParams
impl RefUnwindSafe for DownloadProgressEventParams
impl Send for DownloadProgressEventParams
impl Sync for DownloadProgressEventParams
impl Unpin for DownloadProgressEventParams
impl UnsafeUnpin for DownloadProgressEventParams
impl UnwindSafe for DownloadProgressEventParams
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