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]

[src]

Maps Ok variant of CorsHeader.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter.

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

[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]

[src]

[src]