Enum jsonrpc_http_server::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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more