[][src]Enum isahc::config::RedirectPolicy

pub enum RedirectPolicy {

Describes a policy for handling server redirects.

The default is to not follow redirects.



Do not apply any special treatment to redirect responses. The response will be returned as-is and redirects will not be followed.

This is the default policy.


Follow all redirects automatically.


Follow redirects automatically up to a maximum number of redirects.

Trait Implementations

impl Clone for RedirectPolicy[src]

impl Copy for RedirectPolicy[src]

impl Default for RedirectPolicy[src]

impl Eq for RedirectPolicy[src]

impl PartialEq<RedirectPolicy> for RedirectPolicy[src]

impl Debug for RedirectPolicy[src]

impl StructuralPartialEq for RedirectPolicy[src]

impl StructuralEq for RedirectPolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = !

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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