pub struct Limited { /* private fields */ }
Available on crate feature
follow-redirect
only.Expand description
A redirection Policy
that limits the number of successive redirections.
Implementations§
Trait Implementations§
Source§impl<B, E> Policy<B, E> for Limited
impl<B, E> Policy<B, E> for Limited
Source§fn redirect(&mut self, _: &Attempt<'_>) -> Result<Action, E>
fn redirect(&mut self, _: &Attempt<'_>) -> Result<Action, E>
Invoked when the service received a response with a redirection status code (
3xx
). Read moreSource§fn on_request(&mut self, _request: &mut Request<B>)
fn on_request(&mut self, _request: &mut Request<B>)
Invoked right before the service makes a request, regardless of whether it is redirected
or not. Read more
impl Copy for Limited
Auto Trait Implementations§
impl Freeze for Limited
impl RefUnwindSafe for Limited
impl Send for Limited
impl Sync for Limited
impl Unpin for Limited
impl UnwindSafe for Limited
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more