Enum webview2_sys::DownloadInterruptReason[][src]

#[repr(u32)]
pub enum DownloadInterruptReason {
Show 30 variants None, FileFailed, FileAccessDenied, FileNoSpace, FileNameTooLong, FileTooLarge, FileMalicious, FileTransientError, FileBlockedByPolicy, FileSecurityCheckFailed, FileTooShort, FileHashMismatch, NetworkFailed, NetworkTimeout, NetworkDisconnected, NetworkServerDown, NetworkInvalidRequest, ServerFailed, ServerNoRange, ServerBadContent, ServerUnauthorized, ServerCertificateProblem, ServerForbidden, ServerUnexpectedResponse, ServerContentLengthMismatch, ServerCrossOriginRedirect, UserCanceled, UserShutdown, UserPaused, DownloadProcessCrashed,
}
Expand description

Reason why a download was interrupted.

Variants

None
FileFailed

Generic file error.

FileAccessDenied

Access denied due to security restrictions.

FileNoSpace

Disk full. User should free some space or choose a different location to store the file.

FileNameTooLong

Result file path with file name is too long.

FileTooLarge

File is too large for file system.

FileMalicious

Microsoft Defender Smartscreen detected a virus in the file.

FileTransientError

File was in use, too many files opened, or out of memory.

FileBlockedByPolicy

File blocked by local policy.

FileSecurityCheckFailed

Security check failed unexpectedly. Microsoft Defender SmartScreen could not scan this file.

FileTooShort

Seeking past the end of a file in opening a file, as part of resuming an interrupted download. The file did not exist or was not as large as expected. Partially downloaded file was truncated or deleted, and download will be restarted automatically.

FileHashMismatch

Partial file did not match the expected hash and was deleted. Download will be restarted automatically.

NetworkFailed

Generic network error. User can retry the download manually.

NetworkTimeout

Network operation timed out.

NetworkDisconnected

Network connection lost. User can retry the download manually.

NetworkServerDown

Server has gone down. User can retry the download manually.

NetworkInvalidRequest

Network request invalid because original or redirected URI is invalid, has an unsupported scheme, or is disallowed by network policy.

ServerFailed

Generic server error. User can retry the download manually.

ServerNoRange

Server does not support range requests.

ServerBadContent

Server does not have the requested data.

ServerUnauthorized

Server did not authorize access to resource.

ServerCertificateProblem

Server certificate problem.

ServerForbidden

Server access forbidden.

ServerUnexpectedResponse

Unexpected server response. Responding server may not be intended server. User can retry the download manually.

ServerContentLengthMismatch

Server sent fewer bytes than the Content-Length header. Content-length header may be invalid or connection may have closed. Download is treated as complete unless there are strong validators present to interrupt the download.

ServerCrossOriginRedirect

Unexpected cross-origin redirect.

UserCanceled

User canceled the download.

UserShutdown

User shut down the WebView. Resuming downloads that were interrupted during shutdown is not yet supported.

UserPaused

User paused the download.

DownloadProcessCrashed

WebView crashed.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.