Struct Limited

pub struct Limited { /* private fields */ }

A redirection Policy that limits the number of successive redirections.

Implementations

impl Limited

fn new(max: usize) -> Self

Create a new Limited with a limit of max redirections.

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() -> Self

Returns the default Limited with a limit of 20 redirections.

impl<B, E> Policy<B, E> for Limited

fn redirect(&mut self, &Attempt<'_>) -> Result<Action, E>

Auto Trait Implementations

impl Freeze for Limited

impl RefUnwindSafe for Limited

impl Send for Limited

impl Sync for Limited

impl Unpin for Limited

impl UnsafeUnpin for Limited

impl UnwindSafe for Limited

Blanket Implementations

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

impl<T> Borrow<T> for Limited where T: ?Sized,

impl<T> BorrowMut<T> for Limited where T: ?Sized,

impl<T> CloneToUninit for Limited where T: Clone,

impl<T> From<T> for Limited

impl<T> Instrument for Limited

impl<T> PolicyExt for Limited where T: ?Sized,

impl<T> ToOwned for Limited where T: Clone,

impl<T> WithSubscriber for Limited

impl<T, U> Into<U> for Limited where U: From<T>,

impl<T, U> TryFrom<U> for Limited where U: Into<T>,

impl<T, U> TryInto<U> for Limited where U: TryFrom<T>,