pub struct Then<A, B> { /* private fields */ }Expand description
Two transforms applied one after the other; see Transform::then.
Trait Implementations§
Source§impl<In, A, B> Transform<In> for Then<A, B>
impl<In, A, B> Transform<In> for Then<A, B>
Source§fn apply(&self, index: usize, item: In) -> Result<Self::Output>
fn apply(&self, index: usize, item: In) -> Result<Self::Output>
Transform
item, the item at index. Called concurrently from several threads.Source§fn is_identity(&self) -> bool
fn is_identity(&self) -> bool
Whether
apply returns its input as is: the async path then applies
it where the item is fetched instead of handing it to the pool. Default: false.Auto Trait Implementations§
impl<A, B> Forget for Then<A, B>
impl<A, B> Freeze for Then<A, B>
impl<A, B> RefUnwindSafe for Then<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Then<A, B>
impl<A, B> Sync for Then<A, B>
impl<A, B> Unpin for Then<A, B>
impl<A, B> UnsafeUnpin for Then<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Then<A, B>where
A: UnwindSafe,
B: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more