Struct tsukuyomi_cors::CORS
source · pub struct CORS { /* private fields */ }
Expand description
The main type for providing the CORS filtering.
Implementations
Trait Implementations
sourceimpl Endpoint<()> for CORS
impl Endpoint<()> for CORS
type Output = Response<()>
type Error = Error
type Future = CORSEndpointFuture
sourcefn apply(&self, _: (), cx: &mut ApplyContext<'_, '_>) -> ApplyResult<(), Self>
fn apply(&self, _: (), cx: &mut ApplyContext<'_, '_>) -> ApplyResult<(), Self>
Determines the
Action
that this endpoint performs based on the request method. Read moresourcefn allowed_methods(&self) -> Option<AllowedMethods>
fn allowed_methods(&self) -> Option<AllowedMethods>
Returns a list of HTTP methods that this endpoint accepts. Read more
sourceimpl<H> ModifyHandler<H> for CORSwhere
H: Handler,
H::Output: 'static,
impl<H> ModifyHandler<H> for CORSwhere
H: Handler,
H::Output: 'static,
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