Enum chttp::RedirectPolicy
[−]
[src]
pub enum RedirectPolicy {
None,
Follow,
Limit(u32),
}Describes a policy for handling server redirects.
Variants
NoneDo not apply any special treatment to redirect responses. The response will be return as-is and redirects will not be followed.
This is the default policy.
FollowFollow all redirects automatically.
Limit(u32)Follow redirects automatically up to a maximum number of redirects.
Trait Implementations
impl Clone for RedirectPolicy[src]
fn clone(&self) -> RedirectPolicy[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for RedirectPolicy[src]
impl Debug for RedirectPolicy[src]
impl Eq for RedirectPolicy[src]
impl PartialEq for RedirectPolicy[src]
fn eq(&self, __arg_0: &RedirectPolicy) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &RedirectPolicy) -> bool[src]
This method tests for !=.
impl Default for RedirectPolicy[src]
fn default() -> RedirectPolicy[src]
Returns the "default value" for a type. Read more