pub struct SessionWindow<T> {
pub start: SystemTime,
pub end: SystemTime,
pub events: Vec<StreamEvent<T>>,
pub session_id: u64,
}Expand description
A closed session window containing all events that fell within the session.
Fields§
§start: SystemTimeWall-clock timestamp of the first event.
end: SystemTimeWall-clock timestamp of the last event.
events: Vec<StreamEvent<T>>All events belonging to this session, in arrival order.
session_id: u64Monotonically increasing session identifier (0-based).
Implementations§
Source§impl<T> SessionWindow<T>
impl<T> SessionWindow<T>
Trait Implementations§
Source§impl<T: Clone> Clone for SessionWindow<T>
impl<T: Clone> Clone for SessionWindow<T>
Source§fn clone(&self) -> SessionWindow<T>
fn clone(&self) -> SessionWindow<T>
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<T> Freeze for SessionWindow<T>
impl<T> RefUnwindSafe for SessionWindow<T>where
T: RefUnwindSafe,
impl<T> Send for SessionWindow<T>where
T: Send,
impl<T> Sync for SessionWindow<T>where
T: Sync,
impl<T> Unpin for SessionWindow<T>where
T: Unpin,
impl<T> UnsafeUnpin for SessionWindow<T>
impl<T> UnwindSafe for SessionWindow<T>where
T: UnwindSafe,
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