Struct tower_http::follow_redirect::policy::Or
source · [−]pub struct Or<A, B> { /* private fields */ }
This is supported on crate feature
follow-redirect
only.Expand description
A redirection Policy
that combines the results of two Policy
s.
See PolicyExt::or
for more details.
Trait Implementations
Auto Trait Implementations
impl<A, B> RefUnwindSafe for Or<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> UnwindSafe for Or<A, B> where
A: UnwindSafe,
B: 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