pub struct NeedsEpochs<K, V, T>(/* private fields */);Expand description
Intermediate builder for a timestamped stream.
Turn this type into a stream by calling
generate_epochs or generate_periodic_epochs on it
Trait Implementations§
Source§impl<K, V, T> GenerateEpochs<K, V, T> for NeedsEpochs<K, V, T>
impl<K, V, T> GenerateEpochs<K, V, T> for NeedsEpochs<K, V, T>
Source§fn generate_epochs(
self,
name: &str,
gen: impl FnMut(&DataMessage<K, V, T>, &Option<T>) -> Option<T> + 'static,
) -> (StreamBuilder<K, V, T>, StreamBuilder<K, V, T>)
fn generate_epochs( self, name: &str, gen: impl FnMut(&DataMessage<K, V, T>, &Option<T>) -> Option<T> + 'static, ) -> (StreamBuilder<K, V, T>, StreamBuilder<K, V, T>)
Generates Epochs from data. This operator takes a function which may create a new epoch for any
DataMessage arriving at this Operator. To not create a new Epoch, the function must return
None. Read moreAuto Trait Implementations§
impl<K, V, T> !RefUnwindSafe for NeedsEpochs<K, V, T>
impl<K, V, T> !Send for NeedsEpochs<K, V, T>
impl<K, V, T> !Sync for NeedsEpochs<K, V, T>
impl<K, V, T> !UnwindSafe for NeedsEpochs<K, V, T>
impl<K, V, T> Freeze for NeedsEpochs<K, V, T>where
T: Freeze,
impl<K, V, T> Unpin for NeedsEpochs<K, V, T>where
T: Unpin,
impl<K, V, T> UnsafeUnpin for NeedsEpochs<K, V, T>where
T: UnsafeUnpin,
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more