Enum Action
pub enum Action
A value returned by Policy::redirect which indicates the action
[FollowRedirect][super::FollowRedirect] should take for a redirection response.
Variants
-
Follow Follow the redirection.
-
Stop Do not follow the redirection, and return the redirection response as-is.
Implementations
impl Action
fn is_follow(&self) -> boolReturns
trueif theActionis aFollowvalue.fn is_stop(&self) -> boolReturns
trueif theActionis aStopvalue.
Trait Implementations
impl Clone for Action
fn clone(&self) -> Self
impl Copy for Action
impl Debug for Action
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<B, E> Policy<B, E> for Action
fn redirect(&mut self, &Attempt<'_>) -> Result<Action, E>