pub struct FlowWithContext<In, CtxIn, Out, CtxOut, Mat = NotUsed> { /* private fields */ }Implementations§
Source§impl<In: Send + 'static, CtxIn: Send + 'static> FlowWithContext<In, CtxIn, In, CtxIn, NotUsed>
impl<In: Send + 'static, CtxIn: Send + 'static> FlowWithContext<In, CtxIn, In, CtxIn, NotUsed>
Source§impl<In: Send + 'static, CtxIn: Send + 'static, Out: Send + 'static, CtxOut: Send + 'static, Mat: Send + 'static> FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
impl<In: Send + 'static, CtxIn: Send + 'static, Out: Send + 'static, CtxOut: Send + 'static, Mat: Send + 'static> FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
pub fn as_flow(self) -> Flow<(In, CtxIn), (Out, CtxOut), Mat>
pub fn map<Next, F>(self, f: F) -> FlowWithContext<In, CtxIn, Next, CtxOut, Mat>
pub fn filter<F>( self, predicate: F, ) -> FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
pub fn filter_not<F>( self, predicate: F, ) -> FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
pub fn filter_map<Next, F>( self, f: F, ) -> FlowWithContext<In, CtxIn, Next, CtxOut, Mat>
pub fn map_concat<Next, F, I>( self, f: F, ) -> FlowWithContext<In, CtxIn, Next, CtxOut, Mat>
pub fn map_async<Next, F, Fut>( self, parallelism: usize, f: F, ) -> FlowWithContext<In, CtxIn, Next, CtxOut, Mat>
pub fn map_context<CtxOut2, F>( self, f: F, ) -> FlowWithContext<In, CtxIn, Out, CtxOut2, Mat>
pub fn grouped( self, n: usize, ) -> FlowWithContext<In, CtxIn, Vec<Out>, Vec<CtxOut>, Mat>
pub fn sliding( self, n: usize, step: usize, ) -> FlowWithContext<In, CtxIn, Vec<Out>, Vec<CtxOut>, Mat>
pub fn via<Out2, Ctx2, FlowMat>( self, flow: FlowWithContext<Out, CtxOut, Out2, Ctx2, FlowMat>, ) -> FlowWithContext<In, CtxIn, Out2, Ctx2, Mat>
pub fn to<SinkMat>(
self,
sink: Sink<(Out, CtxOut), SinkMat>,
) -> Sink<(In, CtxIn), Mat>where
SinkMat: Send + 'static,
pub fn to_mat<SinkMat, Combined, F>( self, sink: Sink<(Out, CtxOut), SinkMat>, combine: F, ) -> Sink<(In, CtxIn), Combined>
Trait Implementations§
Source§impl<In: Clone, CtxIn: Clone, Out: Clone, CtxOut: Clone, Mat: Clone> Clone for FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
impl<In: Clone, CtxIn: Clone, Out: Clone, CtxOut: Clone, Mat: Clone> Clone for FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
Source§fn clone(&self) -> FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
fn clone(&self) -> FlowWithContext<In, CtxIn, Out, CtxOut, 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<In, CtxIn, Out, CtxOut, Mat = NotUsed> !RefUnwindSafe for FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
impl<In, CtxIn, Out, CtxOut, Mat = NotUsed> !UnwindSafe for FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
impl<In, CtxIn, Out, CtxOut, Mat> Freeze for FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
impl<In, CtxIn, Out, CtxOut, Mat> Send for FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
impl<In, CtxIn, Out, CtxOut, Mat> Sync for FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
impl<In, CtxIn, Out, CtxOut, Mat> Unpin for FlowWithContext<In, CtxIn, Out, CtxOut, Mat>
impl<In, CtxIn, Out, CtxOut, Mat> UnsafeUnpin for FlowWithContext<In, CtxIn, Out, CtxOut, 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