Struct And

pub struct And<A, B> { /* private fields */ }

A redirection Policy that combines the results of two Policys.

See [PolicyExt::and][super::PolicyExt::and] for more details.

Trait Implementations

impl<A: Clone, B: Clone> Clone for And<A, B>

fn clone(&self) -> Self

impl<A: Copy, B: Copy> Copy for And<A, B>

impl<A: Debug, B: Debug> Debug for And<A, B>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<A: Default, B: Default> Default for And<A, B>

fn default() -> Self

impl<Bd, E, A, B> Policy<Bd, E> for And<A, B> where A: Policy<Bd, E>, B: Policy<Bd, E>,

fn redirect(&mut self, attempt: &Attempt<'_>) -> Result<Action, E>
fn on_request(&mut self, request: &mut Request<Bd>)
fn clone_body(&self, body: &Bd) -> Option<Bd>

Auto Trait Implementations

impl<A, B> Freeze for And<A, B> where A: Freeze, B: Freeze,

impl<A, B> RefUnwindSafe for And<A, B> where A: RefUnwindSafe, B: RefUnwindSafe,

impl<A, B> Send for And<A, B> where A: Send, B: Send,

impl<A, B> Sync for And<A, B> where A: Sync, B: Sync,

impl<A, B> Unpin for And<A, B> where A: Unpin, B: Unpin,

impl<A, B> UnsafeUnpin for And<A, B> where A: UnsafeUnpin, B: UnsafeUnpin,

impl<A, B> UnwindSafe for And<A, B> where A: UnwindSafe, B: UnwindSafe,

Blanket Implementations

impl<T> Any for And<A, B> where T: 'static + ?Sized,

impl<T> Borrow<T> for And<A, B> where T: ?Sized,

impl<T> BorrowMut<T> for And<A, B> where T: ?Sized,

impl<T> CloneToUninit for And<A, B> where T: Clone,

impl<T> From<T> for And<A, B>

impl<T> Instrument for And<A, B>

impl<T> PolicyExt for And<A, B> where T: ?Sized,

impl<T> ToOwned for And<A, B> where T: Clone,

impl<T> WithSubscriber for And<A, B>

impl<T, U> Into<U> for And<A, B> where U: From<T>,

impl<T, U> TryFrom<U> for And<A, B> where U: Into<T>,

impl<T, U> TryInto<U> for And<A, B> where U: TryFrom<T>,