Struct tower_http::follow_redirect::policy::CloneBodyFn
source · [−]pub struct CloneBodyFn<F> { /* private fields */ }
This is supported on crate feature
follow-redirect
only.Expand description
A redirection Policy
created from a closure.
See clone_body_fn
for more details.
Trait Implementations
Auto Trait Implementations
impl<F> RefUnwindSafe for CloneBodyFn<F> where
F: RefUnwindSafe,
impl<F> Send for CloneBodyFn<F> where
F: Send,
impl<F> Sync for CloneBodyFn<F> where
F: Sync,
impl<F> Unpin for CloneBodyFn<F> where
F: Unpin,
impl<F> UnwindSafe for CloneBodyFn<F> where
F: 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