pub enum OriginResponse {
AllowedFromInternalList(usize),
None,
Wildcard,
}Available on crate features
http and http-server-framework only.Expand description
Used internally to manage the origins of CORS responses.
Variants§
AllowedFromInternalList(usize)
An internal origin is passed to the response
None
No origin in response
Wildcard
Response origin is “*”
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OriginResponse
impl RefUnwindSafe for OriginResponse
impl Send for OriginResponse
impl Sync for OriginResponse
impl Unpin for OriginResponse
impl UnwindSafe for OriginResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more