Struct Limited
pub struct Limited { /* private fields */ }
A redirection Policy that limits the number of successive redirections.
Implementations
impl Limited
fn new(max: usize) -> SelfCreate a new
Limitedwith a limit ofmaxredirections.
Trait Implementations
impl Clone for Limited
fn clone(&self) -> Self
impl Copy for Limited
impl Debug for Limited
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Limited
fn default() -> SelfReturns the default
Limitedwith a limit of20redirections.
impl<B, E> Policy<B, E> for Limited
fn redirect(&mut self, &Attempt<'_>) -> Result<Action, E>