pub enum SqlEvent<T> {
Data(T),
Watermark(Watermark),
Barrier(SqlBarrier),
}Expand description
In-band SQL stream envelope for data and control records.
Variants§
Data(T)
User data payload.
Watermark(Watermark)
Event-time progress marker.
Barrier(SqlBarrier)
Checkpoint or alignment marker.
Implementations§
Source§impl<T> SqlEvent<T>
impl<T> SqlEvent<T>
Sourcepub fn map_data_result<U, F>(self, f: F) -> StreamResult<SqlEvent<U>>where
F: FnOnce(T) -> StreamResult<U>,
pub fn map_data_result<U, F>(self, f: F) -> StreamResult<SqlEvent<U>>where
F: FnOnce(T) -> StreamResult<U>,
Maps only the data branch and passes watermarks and barriers through.
Sourcepub const fn as_watermark(&self) -> Option<Watermark>
pub const fn as_watermark(&self) -> Option<Watermark>
Returns the contained watermark when this event is a watermark.
Trait Implementations§
impl<T: Eq> Eq for SqlEvent<T>
impl<T: PartialEq> StructuralPartialEq for SqlEvent<T>
Auto Trait Implementations§
impl<T> Freeze for SqlEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for SqlEvent<T>where
T: RefUnwindSafe,
impl<T> Send for SqlEvent<T>where
T: Send,
impl<T> Sync for SqlEvent<T>where
T: Sync,
impl<T> Unpin for SqlEvent<T>where
T: Unpin,
impl<T> UnsafeUnpin for SqlEvent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SqlEvent<T>where
T: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§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