pub struct MultiStreamJoinResult {
pub events: Vec<StreamEvent>,
pub join_timestamp: SystemTime,
}Expand description
Result of multi-stream join (supports 2+ streams)
Fields§
§events: Vec<StreamEvent>All events that participated in the join (ordered)
join_timestamp: SystemTimeTimestamp when join was completed
Implementations§
Source§impl MultiStreamJoinResult
impl MultiStreamJoinResult
Sourcepub fn from_two_events(
left: StreamEvent,
right: StreamEvent,
timestamp: SystemTime,
) -> Self
pub fn from_two_events( left: StreamEvent, right: StreamEvent, timestamp: SystemTime, ) -> Self
Create from two events (basic 2-stream join)
Sourcepub fn from_result_and_event(
result: MultiStreamJoinResult,
event: StreamEvent,
timestamp: SystemTime,
) -> Self
pub fn from_result_and_event( result: MultiStreamJoinResult, event: StreamEvent, timestamp: SystemTime, ) -> Self
Create from existing result + new event (nested join)
Sourcepub fn get_event(&self, index: usize) -> Option<&StreamEvent>
pub fn get_event(&self, index: usize) -> Option<&StreamEvent>
Get event by index
Sourcepub fn left_event(&self) -> &StreamEvent
pub fn left_event(&self) -> &StreamEvent
Get first event (for backward compatibility)
Sourcepub fn right_event(&self) -> &StreamEvent
pub fn right_event(&self) -> &StreamEvent
Get second event (for backward compatibility)
Trait Implementations§
Source§impl Clone for MultiStreamJoinResult
impl Clone for MultiStreamJoinResult
Source§fn clone(&self) -> MultiStreamJoinResult
fn clone(&self) -> MultiStreamJoinResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultiStreamJoinResult
impl RefUnwindSafe for MultiStreamJoinResult
impl Send for MultiStreamJoinResult
impl Sync for MultiStreamJoinResult
impl Unpin for MultiStreamJoinResult
impl UnwindSafe for MultiStreamJoinResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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