Struct Action

struct Action { ... }

An action to perform when a redirect status code is found.

Implementations

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<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> ErasedDestructor for Action

impl<T> From for Action

fn from(t: T) -> T

Returns 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> WithSubscriber for Action

impl<T, U> Into for Action

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses 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>