pub struct WindowedDataStream<VI, KS, WF> { /* private fields */ }

Implementations§

source§

impl<VI, KS, K, WF> WindowedDataStream<VI, KS, WF>where VI: Send + Sync + 'static, KS: Fn(&Event<VI>) -> K + Send + Sync + 'static, K: Hash + Eq + Send + Sync + Clone + 'static, WF: WindowFactory + Send + 'static,

source

pub fn process<VO, FN, F>(self, process: FN) -> DataStream<VO>where VO: Send + 'static, FN: Fn(K, Box<[Event<VI>]>, Sender<VO>) -> F + Send + Sync + 'static, F: Future<Output = ()> + Send + 'static, WF::Processor<VI>: Send,

source

pub fn process_state<VO, FN, F, GST, KSTF, KST>( self, process: FN, global_state: GST, key_state_fn: KSTF ) -> DataStream<VO>where VO: Send + 'static, FN: Fn(K, Box<[Event<VI>]>, GST, KST, Sender<VO>) -> F + Send + Sync + 'static, F: Future<Output = ()> + Send + 'static, GST: Clone + Send + Sync + 'static, KSTF: Fn(&K) -> KST + Send + Sync + 'static, KST: Clone + Send + Sync + 'static, WF::Processor<VI>: Send,

source

pub fn aggregate<VO, ACC>(self, accumulator: ACC) -> DataStream<VO>where VO: Add<Output = VO> + Send + 'static, ACC: Fn(VI) -> VO + Send + Sync + 'static, WF::Aggregator<VO>: Send,

source§

impl<VI, KS, K, WF> WindowedDataStream<VI, KS, WF>where VI: Send + Sync + Clone + 'static, KS: Fn(&Event<VI>) -> K + Clone, WF: Clone,

source

pub fn split(self) -> (Self, Self)

Auto Trait Implementations§

§

impl<VI, KS, WF> !RefUnwindSafe for WindowedDataStream<VI, KS, WF>

§

impl<VI, KS, WF> !Send for WindowedDataStream<VI, KS, WF>

§

impl<VI, KS, WF> !Sync for WindowedDataStream<VI, KS, WF>

§

impl<VI, KS, WF> Unpin for WindowedDataStream<VI, KS, WF>where KS: Unpin, WF: Unpin,

§

impl<VI, KS, WF> !UnwindSafe for WindowedDataStream<VI, KS, WF>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.