pub struct Or<T, U> {
pub(super) first: T,
pub(super) second: U,
}
Fields§
§first: T
§second: U
Trait Implementations§
source§impl<T, U> FilterBase for Or<T, U>
impl<T, U> FilterBase for Or<T, U>
type Extract = (Either<<T as FilterBase>::Extract, <U as FilterBase>::Extract>,)
type Error = <<U as FilterBase>::Error as CombineRejection<<T as FilterBase>::Error>>::Combined
type Future = EitherFuture<T, U>
fn filter(&self, _: Internal) -> Self::Future
fn map_err<F, E>(self, _internal: Internal, fun: F) -> MapErr<Self, F>
impl<T: Copy, U: Copy> Copy for Or<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for Or<T, U>
impl<T, U> RefUnwindSafe for Or<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for Or<T, U>
impl<T, U> Sync for Or<T, U>
impl<T, U> Unpin for Or<T, U>
impl<T, U> UnwindSafe for Or<T, U>where
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Filter for Twhere
T: FilterBase,
impl<T> Filter for Twhere
T: FilterBase,
source§fn and<F>(self, other: F) -> And<Self, F>
fn and<F>(self, other: F) -> And<Self, F>
Composes a new
Filter
that requires both this and the other to filter a request. Read moresource§fn or<F>(self, other: F) -> Or<Self, F>
fn or<F>(self, other: F) -> Or<Self, F>
Composes a new
Filter
of either this or the other filter. Read moresource§fn map<F>(self, fun: F) -> Map<Self, F>
fn map<F>(self, fun: F) -> Map<Self, F>
Composes this
Filter
with a function receiving the extracted value. Read moresource§fn then<F>(self, fun: F) -> Then<Self, F>
fn then<F>(self, fun: F) -> Then<Self, F>
Composes this
Filter
with an async function receiving
the extracted value. Read moresource§fn and_then<F>(self, fun: F) -> AndThen<Self, F>
fn and_then<F>(self, fun: F) -> AndThen<Self, F>
Composes this
Filter
with a fallible async function receiving
the extracted value. Read moresource§fn or_else<F>(self, fun: F) -> OrElse<Self, F>
fn or_else<F>(self, fun: F) -> OrElse<Self, F>
Compose this
Filter
with a function receiving an error. Read moresource§fn recover<F>(self, fun: F) -> Recover<Self, F>
fn recover<F>(self, fun: F) -> Recover<Self, F>
Compose this
Filter
with a function receiving an error and
returning a new type, instead of the same type. Read moresource§fn untuple_one<T>(self) -> UntupleOne<Self>
fn untuple_one<T>(self) -> UntupleOne<Self>
Convenience method to remove one layer of tupling. Read more