pub struct LogicalSampleId(/* private fields */);Expand description
Stable sample identity used by task randomness and stream checkpoints.
Unlike SequenceId, this identifies the underlying sample rather than its
delivery position. Keep it stable for the same sample when worker scheduling
changes. StreamDataLoaderBuilder shows a source where both IDs coincide.
Implementations§
Trait Implementations§
Source§impl Clone for LogicalSampleId
impl Clone for LogicalSampleId
impl Copy for LogicalSampleId
Source§impl Debug for LogicalSampleId
impl Debug for LogicalSampleId
impl Eq for LogicalSampleId
Source§impl Hash for LogicalSampleId
impl Hash for LogicalSampleId
Source§impl Ord for LogicalSampleId
impl Ord for LogicalSampleId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LogicalSampleId
impl PartialEq for LogicalSampleId
Source§impl PartialOrd for LogicalSampleId
impl PartialOrd for LogicalSampleId
impl StructuralPartialEq for LogicalSampleId
Auto Trait Implementations§
impl Forget for LogicalSampleId
impl Freeze for LogicalSampleId
impl RefUnwindSafe for LogicalSampleId
impl Send for LogicalSampleId
impl Sync for LogicalSampleId
impl Unpin for LogicalSampleId
impl UnsafeUnpin for LogicalSampleId
impl UnwindSafe for LogicalSampleId
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