pub struct ThreadStatus {
pub activity: Option<String>,
pub name: String,
pub short_name: String,
}Expand description
Public view of a point in time status of a thread.
Fields§
§activity: Option<String>Description of the activity currently in progress by the thread.
NOTE: threads are responsible for reporting their own activity.
name: StringFull name of the thread.
short_name: StringOS name of the thread.
This is called the short name because OS threads names usually have a limit.
Trait Implementations§
Source§impl Clone for ThreadStatus
impl Clone for ThreadStatus
Source§fn clone(&self) -> ThreadStatus
fn clone(&self) -> ThreadStatus
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 ThreadStatus
impl Debug for ThreadStatus
Source§impl<'de> Deserialize<'de> for ThreadStatus
impl<'de> Deserialize<'de> for ThreadStatus
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 ThreadStatus
impl Hash for ThreadStatus
Source§impl PartialEq for ThreadStatus
impl PartialEq for ThreadStatus
Source§impl Serialize for ThreadStatus
impl Serialize for ThreadStatus
impl Eq for ThreadStatus
impl StructuralPartialEq for ThreadStatus
Auto Trait Implementations§
impl Freeze for ThreadStatus
impl RefUnwindSafe for ThreadStatus
impl Send for ThreadStatus
impl Sync for ThreadStatus
impl Unpin for ThreadStatus
impl UnwindSafe for ThreadStatus
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