pub struct ThreadTrack(/* private fields */);Expand description
Which thread a run of records came from.
A number this module hands out, not std::thread::ThreadId; see the module
docs on threads for why.
Implementations§
Source§impl ThreadTrack
impl ThreadTrack
Sourcepub const fn get(self) -> u32
pub const fn get(self) -> u32
The raw track number — a Chrome Trace tid, and the sort key for a
per-thread row.
Sourcepub const fn new(number: u32) -> Self
pub const fn new(number: u32) -> Self
A track with this number.
get’s inverse, and the piece a consumer needs to build a
Snapshot rather than record one — every other field of one is already
public. drain is the only thing that hands out the tracks a recorded
snapshot carries; this cannot mint one of those, because a number is not a
buffer.
Trait Implementations§
Source§impl Clone for ThreadTrack
impl Clone for ThreadTrack
impl Copy for ThreadTrack
Source§impl Debug for ThreadTrack
impl Debug for ThreadTrack
Source§impl Display for ThreadTrack
impl Display for ThreadTrack
impl Eq for ThreadTrack
Source§impl Hash for ThreadTrack
impl Hash for ThreadTrack
Source§impl Ord for ThreadTrack
impl Ord for ThreadTrack
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 ThreadTrack
impl PartialEq for ThreadTrack
Source§impl PartialOrd for ThreadTrack
impl PartialOrd for ThreadTrack
impl StructuralPartialEq for ThreadTrack
Auto Trait Implementations§
impl Freeze for ThreadTrack
impl RefUnwindSafe for ThreadTrack
impl Send for ThreadTrack
impl Sync for ThreadTrack
impl Unpin for ThreadTrack
impl UnsafeUnpin for ThreadTrack
impl UnwindSafe for ThreadTrack
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