pub struct EffectStream<R, E, A> { /* private fields */ }Implementations§
Source§impl<R, E, A> EffectStream<R, E, A>
impl<R, E, A> EffectStream<R, E, A>
Sourcepub fn map<B, F>(self, f: F) -> EffectStream<R, E, B>
pub fn map<B, F>(self, f: F) -> EffectStream<R, E, B>
Maps over elements of the stream.
Sourcepub fn run_collect(self) -> Effect<R, E, Vec<A>>
pub fn run_collect(self) -> Effect<R, E, Vec<A>>
Runs the stream and collects all values into a Vec.
pub fn merge(self, other: EffectStream<R, E, A>) -> EffectStream<R, E, A>
pub fn map_par<B, F>(self, concurrency: usize, f: F) -> EffectStream<R, E, B>
pub fn buffer(self, capacity: usize) -> EffectStream<R, E, A>
pub fn take(self, n: usize) -> EffectStream<R, E, A>
pub fn filter<F>(self, f: F) -> EffectStream<R, E, A>
Trait Implementations§
Auto Trait Implementations§
impl<R, E, A> Freeze for EffectStream<R, E, A>
impl<R, E, A> !RefUnwindSafe for EffectStream<R, E, A>
impl<R, E, A> Send for EffectStream<R, E, A>
impl<R, E, A> Sync for EffectStream<R, E, A>
impl<R, E, A> Unpin for EffectStream<R, E, A>
impl<R, E, A> !UnwindSafe for EffectStream<R, E, A>
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