Struct Attempt

struct Attempt<'a> { ... }

A type that holds information on a redirection attempt.

Implementations

impl<'a> Attempt<'a>

fn status(self: &Self) -> StatusCode

Returns the redirection response.

fn location(self: &Self) -> &'a Uri

Returns the destination URI of the redirection.

fn previous(self: &Self) -> &'a Uri

Returns the URI of the original request.

impl<'a> Freeze for Attempt<'a>

impl<'a> RefUnwindSafe for Attempt<'a>

impl<'a> Send for Attempt<'a>

impl<'a> Sync for Attempt<'a>

impl<'a> Unpin for Attempt<'a>

impl<'a> UnsafeUnpin for Attempt<'a>

impl<'a> UnwindSafe for Attempt<'a>

impl<T> Any for Attempt<'a>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Attempt<'a>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Attempt<'a>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for Attempt<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for Attempt<'a>

impl<T> PolicyExt for Attempt<'a>

fn and<P, B, E>(self: Self, other: P) -> And<T, P>
where
    T: Policy<B, E>,
    P: Policy<B, E>
fn or<P, B, E>(self: Self, other: P) -> Or<T, P>
where
    T: Policy<B, E>,
    P: Policy<B, E>

impl<T> WithSubscriber for Attempt<'a>

impl<T, U> Into for Attempt<'a>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Attempt<'a>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Attempt<'a>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>