pub struct Record<T> {
pub data: T,
pub timestamp: i64,
}
Expand description
Record represents a single data record in the stream
Fields§
§data: T
The actual data payload
timestamp: i64
Timestamp of the record (in milliseconds)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Record<T>where
T: Freeze,
impl<T> RefUnwindSafe for Record<T>where
T: RefUnwindSafe,
impl<T> Send for Record<T>where
T: Send,
impl<T> Sync for Record<T>where
T: Sync,
impl<T> Unpin for Record<T>where
T: Unpin,
impl<T> UnwindSafe for Record<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