#[repr(u8)]pub enum DownloadField {
Progress = 0,
Status = 1,
Received = 2,
Total = 3,
Speed = 4,
Id = 5,
}Expand description
A piece of state a download reports into. Compiled apps pass it to the runtime by its code.
Variants§
Progress = 0
The percentage done, 0 to 100.
Status = 1
Where the download stands, in words.
Received = 2
The bytes saved so far.
Total = 3
The file’s size in bytes, once the server says; 0 until then.
Speed = 4
The bytes received per second, over the last moments.
Id = 5
The download’s id, which code passes to cancel_download and the like, and
which its other bindings follow when their list changes.
Implementations§
Source§impl DownloadField
impl DownloadField
Trait Implementations§
Source§impl Clone for DownloadField
impl Clone for DownloadField
Source§fn clone(&self) -> DownloadField
fn clone(&self) -> DownloadField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DownloadField
Source§impl Debug for DownloadField
impl Debug for DownloadField
impl Eq for DownloadField
Source§impl PartialEq for DownloadField
impl PartialEq for DownloadField
impl StructuralPartialEq for DownloadField
Auto Trait Implementations§
impl Freeze for DownloadField
impl RefUnwindSafe for DownloadField
impl Send for DownloadField
impl Sync for DownloadField
impl Unpin for DownloadField
impl UnsafeUnpin for DownloadField
impl UnwindSafe for DownloadField
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