#[repr(u32)]pub enum DownloadCommand {
Cancel = 0,
Pause = 1,
Resume = 2,
}Expand description
What code asks of a running download, by its id. repr(u32) because compiled apps
pass it to the runtime, which every platform’s C calling convention passes without
widening.
Variants§
Cancel = 0
Stops it for good, removing what it saved so far.
Pause = 1
Stops it for now, keeping what it saved so far.
Resume = 2
Carries on with a paused download from where it stopped, when the server can.
Implementations§
Trait Implementations§
Source§impl Clone for DownloadCommand
impl Clone for DownloadCommand
Source§fn clone(&self) -> DownloadCommand
fn clone(&self) -> DownloadCommand
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 DownloadCommand
Source§impl Debug for DownloadCommand
impl Debug for DownloadCommand
impl Eq for DownloadCommand
Source§impl PartialEq for DownloadCommand
impl PartialEq for DownloadCommand
impl StructuralPartialEq for DownloadCommand
Auto Trait Implementations§
impl Freeze for DownloadCommand
impl RefUnwindSafe for DownloadCommand
impl Send for DownloadCommand
impl Sync for DownloadCommand
impl Unpin for DownloadCommand
impl UnsafeUnpin for DownloadCommand
impl UnwindSafe for DownloadCommand
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