Struct Attempt

pub struct Attempt<'a> { /* private fields */ }

A type that holds information on a redirection attempt.

Implementations

impl<'a> Attempt<'a>

fn status(&self) -> StatusCode

Returns the redirection response.

fn method(&self) -> &'a Method

Returns the destination method of the redirection.

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

Returns the destination URI of the redirection.

fn previous_method(&self) -> &'a Method

Returns the method for the previous request, before redirection.

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

Returns the URI of the original request.

Auto Trait Implementations

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>

Blanket Implementations

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

impl<T> Borrow<T> for Attempt<'a> where T: ?Sized,

impl<T> BorrowMut<T> for Attempt<'a> where T: ?Sized,

impl<T> From<T> for Attempt<'a>

impl<T> Instrument for Attempt<'a>

impl<T> PolicyExt for Attempt<'a> where T: ?Sized,

impl<T> WithSubscriber for Attempt<'a>

impl<T, U> Into<U> for Attempt<'a> where U: From<T>,

impl<T, U> TryFrom<U> for Attempt<'a> where U: Into<T>,

impl<T, U> TryInto<U> for Attempt<'a> where U: TryFrom<T>,