pub struct AndThen<S, F, O> { /* private fields */ }
Trait Implementations§
impl<S: Copy, F: Copy, O: Copy> Copy for AndThen<S, F, O>
Auto Trait Implementations§
impl<S, F, O> Freeze for AndThen<S, F, O>
impl<S, F, O> RefUnwindSafe for AndThen<S, F, O>where
S: RefUnwindSafe,
F: RefUnwindSafe,
impl<S, F, O> Send for AndThen<S, F, O>
impl<S, F, O> Sync for AndThen<S, F, O>
impl<S, F, O> Unpin for AndThen<S, F, O>
impl<S, F, O> UnwindSafe for AndThen<S, F, O>where
S: UnwindSafe,
F: 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> PipeExt for Twhere
T: Pipe,
impl<T> PipeExt for Twhere
T: Pipe,
Source§fn tuple(self) -> Tuple<Self>
fn tuple(self) -> Tuple<Self>
Puts the
Output
in a tuple
such that it becomes part of the
TypeCons
and TupleApply
traits.Source§fn map_tuple(self) -> MapTuple<Self>
fn map_tuple(self) -> MapTuple<Self>
A combination of
map
and tuple
; if the result of the current
computation is Ok
then it gets put in a tuple.Source§fn aand_then<F, Fut, O>(self, f: F) -> AAndThen<Self, F, Fut>
fn aand_then<F, Fut, O>(self, f: F) -> AAndThen<Self, F, Fut>
Like
Result::and_then
, sequence an asynchronous computation that only
runs when the current commputation returns an Ok
Source§fn and_then<F, OOk>(
self,
f: F,
) -> AndThen<Self, F, Result<OOk, <Self::Output as ResultT>::Err>>
fn and_then<F, OOk>( self, f: F, ) -> AndThen<Self, F, Result<OOk, <Self::Output as ResultT>::Err>>
Like
Result::and_then
, sequence a synchronous computation that only
runs when the current commputation returns an Ok
Source§fn amap<F, Fut, O>(self, f: F) -> AMap<Self, F, Fut>
fn amap<F, Fut, O>(self, f: F) -> AMap<Self, F, Fut>
Like
Result::map
, sequence an asynchronous computation that only runs
when the current commputation returns an Ok
Source§fn map<F, O>(self, f: F) -> Map<Self, F, O>
fn map<F, O>(self, f: F) -> Map<Self, F, O>
Like
Result::map
, sequence a synchronous computation that only runs
when the current commputation returns an Ok
Source§fn aseqt<F, Fut, O>(self, f: F) -> Tuple<ASeq<Self, F, Fut>>
fn aseqt<F, Fut, O>(self, f: F) -> Tuple<ASeq<Self, F, Fut>>
A convenience function equivalent to calling
aseq
then tuple
Source§fn aseq<F, Fut, O>(self, f: F) -> ASeq<Self, F, Fut>
fn aseq<F, Fut, O>(self, f: F) -> ASeq<Self, F, Fut>
Sequence the current computation with an asynchronous one