cef_download_interrupt_reason_t

Enum cef_download_interrupt_reason_t 

Source
#[non_exhaustive]
#[repr(u32)]
pub enum cef_download_interrupt_reason_t {
Show 30 variants CEF_DOWNLOAD_INTERRUPT_REASON_NONE = 0, CEF_DOWNLOAD_INTERRUPT_REASON_FILE_FAILED = 1, CEF_DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED = 2, CEF_DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE = 3, CEF_DOWNLOAD_INTERRUPT_REASON_FILE_NAME_TOO_LONG = 5, CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_LARGE = 6, CEF_DOWNLOAD_INTERRUPT_REASON_FILE_VIRUS_INFECTED = 7, CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR = 10, CEF_DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED = 11, CEF_DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED = 12, CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_SHORT = 13, CEF_DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH = 14, CEF_DOWNLOAD_INTERRUPT_REASON_FILE_SAME_AS_SOURCE = 15, CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED = 20, CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT = 21, CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_DISCONNECTED = 22, CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_SERVER_DOWN = 23, CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST = 24, CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED = 30, CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE = 31, CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT = 33, CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED = 34, CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CERT_PROBLEM = 35, CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_FORBIDDEN = 36, CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_UNREACHABLE = 37, CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CONTENT_LENGTH_MISMATCH = 38, CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CROSS_ORIGIN_REDIRECT = 39, CEF_DOWNLOAD_INTERRUPT_REASON_USER_CANCELED = 40, CEF_DOWNLOAD_INTERRUPT_REASON_USER_SHUTDOWN = 41, CEF_DOWNLOAD_INTERRUPT_REASON_CRASH = 50,
}
Expand description

Download interrupt reasons. Should be kept in sync with Chromium’s download::DownloadInterruptReason type.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

CEF_DOWNLOAD_INTERRUPT_REASON_NONE = 0

§

CEF_DOWNLOAD_INTERRUPT_REASON_FILE_FAILED = 1

Generic file operation failure.

§

CEF_DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED = 2

The file cannot be accessed due to security restrictions.

§

CEF_DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE = 3

There is not enough room on the drive.

§

CEF_DOWNLOAD_INTERRUPT_REASON_FILE_NAME_TOO_LONG = 5

The directory or file name is too long.

§

CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_LARGE = 6

The file is too large for the file system to handle.

§

CEF_DOWNLOAD_INTERRUPT_REASON_FILE_VIRUS_INFECTED = 7

The file contains a virus.

§

CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR = 10

The file was in use. Too many files are opened at once. We have run out of memory.

§

CEF_DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED = 11

The file was blocked due to local policy.

§

CEF_DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED = 12

An attempt to check the safety of the download failed due to unexpected reasons. See http://crbug.com/153212.

§

CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_SHORT = 13

An attempt was made to seek past the end of a file in opening a file (as part of resuming a previously interrupted download).

§

CEF_DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH = 14

The partial file didn’t match the expected hash.

§

CEF_DOWNLOAD_INTERRUPT_REASON_FILE_SAME_AS_SOURCE = 15

The source and the target of the download were the same.

§

CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED = 20

Generic network failure.

§

CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT = 21

The network operation timed out.

§

CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_DISCONNECTED = 22

The network connection has been lost.

§

CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_SERVER_DOWN = 23

The server has gone down.

§

CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST = 24

The network request was invalid. This may be due to the original URL or a redirected URL:

  • Having an unsupported scheme.
  • Being an invalid URL.
  • Being disallowed by policy.
§

CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED = 30

The server indicates that the operation has failed (generic).

§

CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE = 31

The server does not support range requests. Internal use only: must restart from the beginning.

§

CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT = 33

The server does not have the requested data.

§

CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED = 34

Server didn’t authorize access to resource.

§

CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CERT_PROBLEM = 35

Server certificate problem.

§

CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_FORBIDDEN = 36

Server access forbidden.

§

CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_UNREACHABLE = 37

Unexpected server response. This might indicate that the responding server may not be the intended server.

§

CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CONTENT_LENGTH_MISMATCH = 38

The server sent fewer bytes than the content-length header. It may indicate that the connection was closed prematurely, or the Content-Length header was invalid. The download is only interrupted if strong validators are present. Otherwise, it is treated as finished.

§

CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CROSS_ORIGIN_REDIRECT = 39

An unexpected cross-origin redirect happened.

§

CEF_DOWNLOAD_INTERRUPT_REASON_USER_CANCELED = 40

The user canceled the download.

§

CEF_DOWNLOAD_INTERRUPT_REASON_USER_SHUTDOWN = 41

The user shut down the browser. Internal use only: resume pending downloads if possible.

§

CEF_DOWNLOAD_INTERRUPT_REASON_CRASH = 50

The browser crashed. Internal use only: resume pending downloads if possible.

Trait Implementations§

Source§

impl Clone for cef_download_interrupt_reason_t

Source§

fn clone(&self) -> cef_download_interrupt_reason_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for cef_download_interrupt_reason_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for cef_download_interrupt_reason_t

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for cef_download_interrupt_reason_t

Source§

fn eq(&self, other: &cef_download_interrupt_reason_t) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for cef_download_interrupt_reason_t

Source§

impl Eq for cef_download_interrupt_reason_t

Source§

impl StructuralPartialEq for cef_download_interrupt_reason_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.