[][src]Enum actix_cors::CorsError

#[non_exhaustive]pub enum CorsError {
    WildcardOrigin,
    MissingOrigin,
    MissingRequestMethod,
    BadRequestMethod,
    BadRequestHeaders,
    OriginNotAllowed,
    MethodNotAllowed,
    HeadersNotAllowed,
}

Errors that can occur when processing CORS guarded requests.

Variants (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.
WildcardOrigin

Allowed origin argument must not be wildcard (*).

MissingOrigin

Request header Origin is required but was not provided.

MissingRequestMethod

Request header Access-Control-Request-Method is required but is missing.

BadRequestMethod

Request header Access-Control-Request-Method has an invalid value.

BadRequestHeaders

Request header Access-Control-Request-Headers has an invalid value.

OriginNotAllowed

Origin is not allowed to make this request.

MethodNotAllowed

Request method is not allowed.

HeadersNotAllowed

One or more request headers are not allowed.

Trait Implementations

impl Clone for CorsError[src]

impl Debug for CorsError[src]

impl Display for CorsError[src]

impl Error for CorsError[src]

impl ResponseError for CorsError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,