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<'de> Deserialize<'de> for ThreadInfo
impl<'de> Deserialize<'de> for ThreadInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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§impl PartialOrd for ThreadInfo
impl PartialOrd for ThreadInfo
source§impl Serialize for ThreadInfo
impl Serialize for ThreadInfo
impl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more