Enum jsonrpc_http_server::cors::AllowCors [−][src]
pub enum AllowCors<T> {
NotRequired,
Invalid,
Ok(T),
}
Expand description
CORS response headers
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.
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for AllowCors<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for AllowCors<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more