pub struct ThreadState {
pub id: u64,
pub name: String,
pub state: String,
pub waits_in: Option<ThreadWait>,
pub futex_holds: Option<String>,
}Expand description
A thread at a stop: its id, its name, its state (Running, Ready,
Waiting, as dvm’s kernel names them), and the syscall it waits in, or
last waited in, which its state tells apart.
Fields§
§id: u64§name: String§state: String§waits_in: Option<ThreadWait>§futex_holds: Option<String>For a wait on a futex, what its word holds now, in hex.
Implementations§
Source§impl ThreadState
impl ThreadState
Sourcepub fn waiting_in(&self) -> Option<&ThreadWait>
pub fn waiting_in(&self) -> Option<&ThreadWait>
The syscall it waits in now, if it waits.
Trait Implementations§
Source§impl Clone for ThreadState
impl Clone for ThreadState
Source§impl Debug for ThreadState
impl Debug for ThreadState
Source§impl<'de> Deserialize<'de> for ThreadState
impl<'de> Deserialize<'de> for ThreadState
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
impl Eq for ThreadState
Source§impl PartialEq for ThreadState
impl PartialEq for ThreadState
Source§impl Serialize for ThreadState
impl Serialize for ThreadState
impl StructuralPartialEq for ThreadState
Auto Trait Implementations§
impl Forget for ThreadState
impl Freeze for ThreadState
impl RefUnwindSafe for ThreadState
impl Send for ThreadState
impl Sync for ThreadState
impl Unpin for ThreadState
impl UnsafeUnpin for ThreadState
impl UnwindSafe for ThreadState
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