pub struct WorkerRecord<T> {
pub sequence: Option<SequenceId>,
pub logical_id: LogicalSampleId,
pub sample: T,
}Expand description
An owned sample plus its ordering and reproducibility identifiers.
Ordered loaders require a sequence; completion-order loaders may use
None. All records require a stable logical_id for sample-local randomness.
See StreamDataLoaderBuilder for a complete lazy source implementation.
Fields§
§sequence: Option<SequenceId>Position in the global ordered generation, when supplied.
logical_id: LogicalSampleIdStable task-randomness and checkpoint identity.
sample: TOwned source sample.
Trait Implementations§
Source§impl<T: Clone> Clone for WorkerRecord<T>
impl<T: Clone> Clone for WorkerRecord<T>
Source§impl<T: Debug> Debug for WorkerRecord<T>
impl<T: Debug> Debug for WorkerRecord<T>
impl<T: Eq> Eq for WorkerRecord<T>
Source§impl<T: PartialEq> PartialEq for WorkerRecord<T>
impl<T: PartialEq> PartialEq for WorkerRecord<T>
impl<T: PartialEq> StructuralPartialEq for WorkerRecord<T>
Auto Trait Implementations§
impl<T> Forget for WorkerRecord<T>
impl<T> Freeze for WorkerRecord<T>where
T: Freeze,
impl<T> RefUnwindSafe for WorkerRecord<T>where
T: RefUnwindSafe,
impl<T> Send for WorkerRecord<T>where
T: Send,
impl<T> Sync for WorkerRecord<T>where
T: Sync,
impl<T> Unpin for WorkerRecord<T>where
T: Unpin,
impl<T> UnsafeUnpin for WorkerRecord<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WorkerRecord<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