[][src]Enum chttp::config::RedirectPolicy

pub enum RedirectPolicy {
    None,
    Follow,
    Limit(u32),
}

Describes a policy for handling server redirects.

The default is to not follow redirects.

Variants

None

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

Follow all redirects automatically.

Limit(u32)

Follow redirects automatically up to a maximum number of redirects.

Trait Implementations

impl Clone for RedirectPolicy[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for RedirectPolicy[src]

impl PartialEq<RedirectPolicy> for RedirectPolicy[src]

impl Copy for RedirectPolicy[src]

impl Eq for RedirectPolicy[src]

impl Debug for RedirectPolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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