#[repr(u32)]pub enum DownloadState {
InProgress = 0,
Interrupted = 1,
Completed = 2,
}Expand description
State of the download operation.
Variants§
InProgress = 0
The download is in progress.
Interrupted = 1
The connection with the file host was broken. The InterruptReason property
can be accessed from ICoreWebView2DownloadOperation. See
COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON for descriptions of kinds of
interrupt reasons. Host can check whether an interrupted download can be
resumed with the CanResume property on the ICoreWebView2DownloadOperation.
Once resumed, a download is in the COREWEBVIEW2_DOWNLOAD_STATE_IN_PROGRESS state.
Completed = 2
The download completed successfully.
Trait Implementations§
Source§impl Clone for DownloadState
impl Clone for DownloadState
Source§fn clone(&self) -> DownloadState
fn clone(&self) -> DownloadState
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 DownloadState
impl Debug for DownloadState
Source§impl PartialEq for DownloadState
impl PartialEq for DownloadState
impl Copy for DownloadState
impl Eq for DownloadState
impl StructuralPartialEq for DownloadState
Auto Trait Implementations§
impl Freeze for DownloadState
impl RefUnwindSafe for DownloadState
impl Send for DownloadState
impl Sync for DownloadState
impl Unpin for DownloadState
impl UnwindSafe for DownloadState
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