pub struct MapTuple<S> { /* private fields */ }Trait Implementations§
impl<S: Copy> Copy for MapTuple<S>
Auto Trait Implementations§
impl<S> Freeze for MapTuple<S>where
S: Freeze,
impl<S> RefUnwindSafe for MapTuple<S>where
S: RefUnwindSafe,
impl<S> Send for MapTuple<S>where
S: Send,
impl<S> Sync for MapTuple<S>where
S: Sync,
impl<S> Unpin for MapTuple<S>where
S: Unpin,
impl<S> UnwindSafe for MapTuple<S>where
S: 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 OkSource§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 OkSource§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 OkSource§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 OkSource§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 tupleSource§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