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() -> SelfCreate a new
FollowRedirectLayerwith aStandardredirection policy.
impl<P> FollowRedirectLayer<P>
fn with_policy(policy: P) -> SelfCreate a new
FollowRedirectLayerwith the given redirectionPolicy.
Trait Implementations
impl<P: Clone> Clone for FollowRedirectLayer<P>
fn clone(&self) -> FollowRedirectLayer<P>
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() -> FollowRedirectLayer<P>
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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FollowRedirectLayer<P>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FollowRedirectLayer<P>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FollowRedirectLayer<P>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FollowRedirectLayer<P>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for FollowRedirectLayer<P>
impl<T> PolicyExt for FollowRedirectLayer<P>
where
T: ?Sized,
fn and<P, B, E>(self, other: P) -> And<T, P> where T: Sized + Policy<B, E>, P: Policy<B, E>,fn or<P, B, E>(self, other: P) -> Or<T, P> where T: Sized + Policy<B, E>, P: Policy<B, E>,
impl<T> ToOwned for FollowRedirectLayer<P>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for FollowRedirectLayer<P>
impl<T, U> Into<U> for FollowRedirectLayer<P>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FollowRedirectLayer<P>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for FollowRedirectLayer<P>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>