Struct tower_http::cors::AnyOr
source · [−]pub struct AnyOr<T>(_);This is supported on crate feature
cors only.Expand description
Used to make methods like CorsLayer::allow_methods more convenient to call.
You shouldn’t have to use this type directly.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for AnyOr<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for AnyOr<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect only.Create a new Policy that returns Action::Follow only if self and other return
Action::Follow. Read more
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