pub trait StatefulOp<K, VI, T>: Sealed {
// Required method
fn stateful_op<VO: Data, S: Default + Serialize + DeserializeOwned + 'static>(
self,
name: &str,
logic: impl StatefulLogic<K, VI, T, VO, S>,
) -> StreamBuilder<K, VO, T>;
}Expand description
Append a stateful operator to the stream
Required Methods§
Sourcefn stateful_op<VO: Data, S: Default + Serialize + DeserializeOwned + 'static>(
self,
name: &str,
logic: impl StatefulLogic<K, VI, T, VO, S>,
) -> StreamBuilder<K, VO, T>
fn stateful_op<VO: Data, S: Default + Serialize + DeserializeOwned + 'static>( self, name: &str, logic: impl StatefulLogic<K, VI, T, VO, S>, ) -> StreamBuilder<K, VO, T>
Append an arbitrary stateful operator to the datastream.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".