Enum WebErrorStatus

Source
#[repr(u32)]
pub enum WebErrorStatus {
Show 17 variants Unknown = 0, CertificateCommonNameIsIncorrect = 1, CertificateExpired = 2, ClientCertificateContainsErrors = 3, CertificateRevoked = 4, CertificateIsInvalid = 5, ServerUnreachable = 6, Timeout = 7, ErrorHttpInvalidServerResponse = 8, ConnectionAborted = 9, ConnectionReset = 10, Disconnected = 11, CannotConnect = 12, HostNameNotResolved = 13, OperationCanceled = 14, RedirectFailed = 15, UnexpectedError = 16,
}
Expand description

Indicates the error status values for web navigations.

Variants§

§

Unknown = 0

Indicates that an unknown error occurred.

§

CertificateCommonNameIsIncorrect = 1

Indicates that the SSL certificate common name does not match the web address.

§

CertificateExpired = 2

Indicates that the SSL certificate has expired.

§

ClientCertificateContainsErrors = 3

Indicates that the SSL client certificate contains errors.

§

CertificateRevoked = 4

Indicates that the SSL certificate has been revoked.

§

CertificateIsInvalid = 5

Indicates that the SSL certificate is not valid. The certificate may not match the public key pins for the host name, the certificate is signed by an untrusted authority or using a weak sign algorithm, the certificate claimed DNS names violate name constraints, the certificate contains a weak key, the validity period of the certificate is too long, lack of revocation information or revocation mechanism, non-unique host name, lack of certificate transparency information, or the certificate is chained to a [legacy Symantec root][GoogleblogSecurity201803DistrustSymantecPkiImmediateHtml].

[GoogleblogSecurity201803DistrustSymantecPkiImmediateHtml]: https://security.googleblog.com/2018/03/distrust-of-symantec-pki-immediate.html “Distrust of the Symantec PKI: Immediate action needed by site operators | Google Security Blog”

§

ServerUnreachable = 6

Indicates that the host is unreachable.

§

Timeout = 7

Indicates that the connection has timed out.

§

ErrorHttpInvalidServerResponse = 8

Indicates that the server returned an invalid or unrecognized response.

§

ConnectionAborted = 9

Indicates that the connection was stopped.

§

ConnectionReset = 10

Indicates that the connection was reset.

§

Disconnected = 11

Indicates that the Internet connection has been lost.

§

CannotConnect = 12

Indicates that a connection to the destination was not established.

§

HostNameNotResolved = 13

Indicates that the provided host name was not able to be resolved.

§

OperationCanceled = 14

Indicates that the operation was canceled.

§

RedirectFailed = 15

Indicates that the request redirect failed.

§

UnexpectedError = 16

Indicates that an unexpected error occurred.

Trait Implementations§

Source§

impl Clone for WebErrorStatus

Source§

fn clone(&self) -> WebErrorStatus

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 WebErrorStatus

Source§

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

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

impl PartialEq for WebErrorStatus

Source§

fn eq(&self, other: &WebErrorStatus) -> 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 WebErrorStatus

Source§

impl Eq for WebErrorStatus

Source§

impl StructuralPartialEq for WebErrorStatus

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.