Enum jsonrpc_http_server::CorsHeader
[−]
[src]
pub enum CorsHeader<T = AccessControlAllowOrigin> { NotRequired, Invalid, Ok(T), }
CORS Header Result.
Variants
NotRequired
CORS header was not required. Origin is not present in the request.
Invalid
CORS header is not returned, Origin is not allowed to access the resource.
Ok(T)
CORS header to include in the response. Origin is allowed to access the resource.
Methods
impl<T> CorsHeader<T>
[src]
fn map<F, O>(self, f: F) -> CorsHeader<O> where
F: FnOnce(T) -> O,
F: FnOnce(T) -> O,
Maps Ok
variant of CorsHeader
.
Trait Implementations
impl<T> Into<Option<T>> for CorsHeader<T>
[src]
impl<T> Eq for CorsHeader<T> where
T: Eq,
[src]
T: Eq,
impl<T> PartialEq<CorsHeader<T>> for CorsHeader<T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
fn eq(&self, __arg_0: &CorsHeader<T>) -> bool
fn ne(&self, __arg_0: &CorsHeader<T>) -> bool
impl<T> Debug for CorsHeader<T> where
T: Debug,
[src]
T: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl<T> Clone for CorsHeader<T> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> CorsHeader<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more