pub struct Record<T> {
pub payload: T,
pub meta: RecordMeta,
pub ack: AckRef,
}Expand description
A record flowing through the chain.
Fields§
§payload: TThe payload; may borrow from the source’s buffers.
meta: RecordMetaCopyable metadata, preserved automatically by operators.
ack: AckRefAcknowledgement handle shared by every record derived from the same source poll batch. Dropping it (filter, error-skip, or successful write) resolves this record’s share of the batch.
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> UnsafeUnpin for Record<T>where
T: UnsafeUnpin,
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