pub struct ThreadStat { /* private fields */ }
Expand description
A struct to monitor thread cpu usage
Implementations§
Source§impl ThreadStat
impl ThreadStat
Sourcepub fn build(thread_id: ThreadId) -> Result<Self>
pub fn build(thread_id: ThreadId) -> Result<Self>
return a monitor of specified thread.
tid
is NOT std::thread::ThreadId
.
ThreadId::current
can be used to retrieve a valid tid.
Auto Trait Implementations§
impl Freeze for ThreadStat
impl RefUnwindSafe for ThreadStat
impl Send for ThreadStat
impl Sync for ThreadStat
impl Unpin for ThreadStat
impl UnwindSafe for ThreadStat
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