Enum Action
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: &Self) -> boolReturns
trueif theActionis aFollowvalue.fn is_stop(self: &Self) -> boolReturns
trueif theActionis aStopvalue.
impl Clone for Action
fn clone(self: &Self) -> Action
impl Copy for Action
impl Debug for Action
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
impl<B, E> Policy for Action
fn redirect(self: &mut Self, _: &Attempt<'_>) -> Result<Action, E>
impl<T> Any for Action
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Action
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Action
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Action
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Action
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for Action
impl<T> PolicyExt for Action
fn and<P, B, E>(self: Self, other: P) -> And<T, P> where T: Policy<B, E>, P: Policy<B, E>fn or<P, B, E>(self: Self, other: P) -> Or<T, P> where T: Policy<B, E>, P: Policy<B, E>
impl<T> ToOwned for Action
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> WithSubscriber for Action
impl<T, U> Into for Action
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Action
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Action
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>