Struct thread_priority::Thread
source · pub struct Thread {
pub priority: ThreadPriority,
pub id: ThreadId,
}
Expand description
Represents an OS thread.
Fields§
§priority: ThreadPriority
Thread’s priority.
id: ThreadId
Thread’s ID (or handle).
Implementations§
Trait Implementations§
source§impl Ord for Thread
impl Ord for Thread
source§impl PartialEq for Thread
impl PartialEq for Thread
source§impl PartialOrd for Thread
impl PartialOrd for Thread
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Thread
impl Eq for Thread
impl StructuralPartialEq for Thread
Auto Trait Implementations§
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnwindSafe for Thread
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