pub struct DataStream<T> { /* private fields */ }Expand description
DataStream represents a stream of data elements
Implementations§
Source§impl<T> DataStream<T>
impl<T> DataStream<T>
Sourcepub fn map<F, R>(self, f: F) -> DataStream<R>
pub fn map<F, R>(self, f: F) -> DataStream<R>
Apply a map transformation
Sourcepub fn transform<O, R>(self, operator: O) -> DataStream<R>
pub fn transform<O, R>(self, operator: O) -> DataStream<R>
Transform the stream using a custom operator
Sourcepub fn window(self, config: WindowConfig) -> WindowedStream<T>
pub fn window(self, config: WindowConfig) -> WindowedStream<T>
Apply windowing to the stream
Auto Trait Implementations§
impl<T> Freeze for DataStream<T>
impl<T> !RefUnwindSafe for DataStream<T>
impl<T> Send for DataStream<T>
impl<T> Sync for DataStream<T>
impl<T> Unpin for DataStream<T>
impl<T> !UnwindSafe for DataStream<T>
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