Enum jsonrpc_http_server::CorsHeader [] [src]

pub enum CorsHeader<T = AccessControlAllowOrigin> {
    NotRequired,
    Invalid,
    Ok(T),
}

CORS Header Result.

Variants

CORS header was not required. Origin is not present in the request.

CORS header is not returned, Origin is not allowed to access the resource.

CORS header to include in the response. Origin is allowed to access the resource.

Methods

impl<T> CorsHeader<T>
[src]

Maps Ok variant of CorsHeader.

Trait Implementations

impl<T> Into<Option<T>> for CorsHeader<T>
[src]

Performs the conversion.

impl<T> Eq for CorsHeader<T> where
    T: Eq
[src]

impl<T> PartialEq<CorsHeader<T>> for CorsHeader<T> where
    T: PartialEq<T>, 
[src]

impl<T> Debug for CorsHeader<T> where
    T: Debug
[src]

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more