pub struct Chain<A, B>(pub A, pub B);Expand description
Compose two transforms into one, running A then B on its output, so a
static chain can carry more than one middle stage without a heap-allocated
element list: Chain(a, Chain(b, c)) is a three-transform pipeline that still
monomorphizes to one unboxed future. A dropping a frame (Ok(None))
short-circuits B.
Tuple Fields§
§0: A§1: BTrait Implementations§
Source§impl<A: StaticTransform, B: StaticTransform> StaticTransform for Chain<A, B>
impl<A: StaticTransform, B: StaticTransform> StaticTransform for Chain<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for Chain<A, B>
impl<A, B> RefUnwindSafe for Chain<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Chain<A, B>
impl<A, B> Sync for Chain<A, B>
impl<A, B> Unpin for Chain<A, B>
impl<A, B> UnsafeUnpin for Chain<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Chain<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