pub struct DebugThreadId { /* private fields */ }
Available on crate feature
std
only.Expand description
Identifies a thread in a form useful for debugging.
Uses the name if possible and the id where it is not.
Implementations§
Source§impl DebugThreadId
impl DebugThreadId
Sourcepub fn current() -> DebugThreadId
pub fn current() -> DebugThreadId
Get the DebugThreadId
of the current thread.
Will be significantly slower than UniqueThreadId::current
,
due to the need to fetch the thread’s name.
Sourcepub fn id(&self) -> UniqueThreadId
pub fn id(&self) -> UniqueThreadId
Get the id of this thread as a UniqueThreadId
.
Trait Implementations§
Source§impl Clone for DebugThreadId
impl Clone for DebugThreadId
Source§fn clone(&self) -> DebugThreadId
fn clone(&self) -> DebugThreadId
Returns a duplicate 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 DebugThreadId
impl Debug for DebugThreadId
Source§impl Display for DebugThreadId
impl Display for DebugThreadId
Source§impl Serialize for DebugThreadId
impl Serialize for DebugThreadId
Auto Trait Implementations§
impl Freeze for DebugThreadId
impl RefUnwindSafe for DebugThreadId
impl Send for DebugThreadId
impl Sync for DebugThreadId
impl Unpin for DebugThreadId
impl UnwindSafe for DebugThreadId
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