pub struct SourceWithContext<Out, Ctx, Mat = NotUsed> { /* private fields */ }Implementations§
Source§impl<Out: Send + 'static, Ctx: Send + 'static, Mat: Send + 'static> SourceWithContext<Out, Ctx, Mat>
impl<Out: Send + 'static, Ctx: Send + 'static, Mat: Send + 'static> SourceWithContext<Out, Ctx, Mat>
pub fn as_source(self) -> Source<(Out, Ctx), Mat>
pub fn run_collect(self) -> StreamResult<Vec<(Out, Ctx)>>
pub fn map<Next, F>(self, f: F) -> SourceWithContext<Next, Ctx, Mat>
pub fn filter<F>(self, predicate: F) -> SourceWithContext<Out, Ctx, Mat>
pub fn filter_not<F>(self, predicate: F) -> SourceWithContext<Out, Ctx, Mat>
pub fn filter_map<Next, F>(self, f: F) -> SourceWithContext<Next, Ctx, Mat>
pub fn map_concat<Next, F, I>(self, f: F) -> SourceWithContext<Next, Ctx, Mat>
pub fn map_async<Next, F, Fut>( self, parallelism: usize, f: F, ) -> SourceWithContext<Next, Ctx, Mat>
pub fn map_context<CtxOut, F>(self, f: F) -> SourceWithContext<Out, CtxOut, Mat>
pub fn grouped(self, size: usize) -> SourceWithContext<Vec<Out>, Vec<Ctx>, Mat>
pub fn sliding( self, size: usize, step: usize, ) -> SourceWithContext<Vec<Out>, Vec<Ctx>, Mat>
pub fn via<Out2, Ctx2, FlowMat>( self, flow: FlowWithContext<Out, Ctx, Out2, Ctx2, FlowMat>, ) -> SourceWithContext<Out2, Ctx2, Mat>
pub fn via_mat<Out2, Ctx2, FlowMat, Combined, F>( self, flow: FlowWithContext<Out, Ctx, Out2, Ctx2, FlowMat>, combine: F, ) -> SourceWithContext<Out2, Ctx2, Combined>
pub fn to<SinkMat>(self, sink: Sink<(Out, Ctx), SinkMat>) -> RunnableGraph<Mat>where
SinkMat: Send + 'static,
pub fn to_mat<SinkMat, Combined, F>( self, sink: Sink<(Out, Ctx), SinkMat>, combine: F, ) -> RunnableGraph<Combined>
Trait Implementations§
Source§impl<Out: Clone, Ctx: Clone, Mat: Clone> Clone for SourceWithContext<Out, Ctx, Mat>
impl<Out: Clone, Ctx: Clone, Mat: Clone> Clone for SourceWithContext<Out, Ctx, Mat>
Source§fn clone(&self) -> SourceWithContext<Out, Ctx, Mat>
fn clone(&self) -> SourceWithContext<Out, Ctx, Mat>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Out, Ctx, Mat = NotUsed> !RefUnwindSafe for SourceWithContext<Out, Ctx, Mat>
impl<Out, Ctx, Mat = NotUsed> !UnwindSafe for SourceWithContext<Out, Ctx, Mat>
impl<Out, Ctx, Mat> Freeze for SourceWithContext<Out, Ctx, Mat>
impl<Out, Ctx, Mat> Send for SourceWithContext<Out, Ctx, Mat>
impl<Out, Ctx, Mat> Sync for SourceWithContext<Out, Ctx, Mat>
impl<Out, Ctx, Mat> Unpin for SourceWithContext<Out, Ctx, Mat>
impl<Out, Ctx, Mat> UnsafeUnpin for SourceWithContext<Out, Ctx, Mat>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage