Struct tsukuyomi_cors::CORS
source · pub struct CORS { /* private fields */ }
Expand description
The main type for providing the CORS filtering.
Implementations
Trait Implementations
sourceimpl Fallback for CORS
impl Fallback for CORS
The implementation of Fallback
for processing the CORS request.
This fallback adds the processing for CORS preflight request for all URLs
registered in the scope. If the route explicitly handles OPTIONS
, it will be
ignored.
sourceimpl Modifier for CORS
impl Modifier for CORS
The implementation of Modifier
for processing CORS requests.
This modifier inserts the processing of CORS request for all AsyncResult
s
returned from the handlers in the scope.
Auto Trait Implementations
impl RefUnwindSafe for CORS
impl Send for CORS
impl Sync for CORS
impl Unpin for CORS
impl UnwindSafe for CORS
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more