Struct Or

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

A redirection Policy that combines the results of two Policys.

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

Trait Implementations

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

fn clone(&self) -> Self

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

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

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

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

fn default() -> Self

impl<Bd, E, A, B> Policy<Bd, E> for Or<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 Or<A, B> where A: Freeze, B: Freeze,

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

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

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

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

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

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

Blanket Implementations

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

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

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

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

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

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

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

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

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

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

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

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