Struct puffin::ThreadInfo
source · pub struct ThreadInfo {
pub start_time_ns: Option<NanoSecond>,
pub name: String,
}
Expand description
Used to identify one source of profiling data.
Fields§
§start_time_ns: Option<NanoSecond>
Useful for ordering threads.
name: String
Name of the thread
Trait Implementations§
source§impl Clone for ThreadInfo
impl Clone for ThreadInfo
source§fn clone(&self) -> ThreadInfo
fn clone(&self) -> ThreadInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ThreadInfo
impl Debug for ThreadInfo
source§impl Hash for ThreadInfo
impl Hash for ThreadInfo
source§impl Ord for ThreadInfo
impl Ord for ThreadInfo
source§fn cmp(&self, other: &ThreadInfo) -> Ordering
fn cmp(&self, other: &ThreadInfo) -> Ordering
1.21.0 · 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
source§impl PartialEq for ThreadInfo
impl PartialEq for ThreadInfo
source§fn eq(&self, other: &ThreadInfo) -> bool
fn eq(&self, other: &ThreadInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ThreadInfo
impl PartialOrd for ThreadInfo
source§fn partial_cmp(&self, other: &ThreadInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &ThreadInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ThreadInfo
impl StructuralPartialEq for ThreadInfo
Auto Trait Implementations§
impl Freeze for ThreadInfo
impl RefUnwindSafe for ThreadInfo
impl Send for ThreadInfo
impl Sync for ThreadInfo
impl Unpin for ThreadInfo
impl UnwindSafe for ThreadInfo
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