Struct FollowRedirectLayer

pub struct FollowRedirectLayer<P = Standard> { /* private fields */ }

Layer for retrying requests with a Service to follow redirection responses.

See the module docs for more details.

Implementations

impl FollowRedirectLayer

fn new() -> Self

Create a new FollowRedirectLayer with a Standard redirection policy.

impl<P> FollowRedirectLayer<P>

fn with_policy(policy: P) -> Self

Create a new FollowRedirectLayer with the given redirection Policy.

Trait Implementations

impl<P: Clone> Clone for FollowRedirectLayer<P>

fn clone(&self) -> Self

impl<P: Copy> Copy for FollowRedirectLayer<P>

impl<P: Debug> Debug for FollowRedirectLayer<P>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<P: Default> Default for FollowRedirectLayer<P>

fn default() -> Self

impl<S, P> Layer<S> for FollowRedirectLayer<P> where S: Clone, P: Clone,

type Service = FollowRedirect<S, P>;
fn layer(&self, inner: S) -> Self::Service

Auto Trait Implementations

impl<P> Freeze for FollowRedirectLayer<P> where P: Freeze,

impl<P> RefUnwindSafe for FollowRedirectLayer<P> where P: RefUnwindSafe,

impl<P> Send for FollowRedirectLayer<P> where P: Send,

impl<P> Sync for FollowRedirectLayer<P> where P: Sync,

impl<P> Unpin for FollowRedirectLayer<P> where P: Unpin,

impl<P> UnsafeUnpin for FollowRedirectLayer<P> where P: UnsafeUnpin,

impl<P> UnwindSafe for FollowRedirectLayer<P> where P: UnwindSafe,

Blanket Implementations

impl<T> Any for FollowRedirectLayer<P> where T: 'static + ?Sized,

impl<T> Borrow<T> for FollowRedirectLayer<P> where T: ?Sized,

impl<T> BorrowMut<T> for FollowRedirectLayer<P> where T: ?Sized,

impl<T> CloneToUninit for FollowRedirectLayer<P> where T: Clone,

impl<T> From<T> for FollowRedirectLayer<P>

impl<T> Instrument for FollowRedirectLayer<P>

impl<T> PolicyExt for FollowRedirectLayer<P> where T: ?Sized,

impl<T> ToOwned for FollowRedirectLayer<P> where T: Clone,

impl<T> WithSubscriber for FollowRedirectLayer<P>

impl<T, U> Into<U> for FollowRedirectLayer<P> where U: From<T>,

impl<T, U> TryFrom<U> for FollowRedirectLayer<P> where U: Into<T>,

impl<T, U> TryInto<U> for FollowRedirectLayer<P> where U: TryFrom<T>,