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 PartialOrd for Thread
impl PartialOrd for Thread
impl Copy for Thread
impl Eq for Thread
impl StructuralPartialEq for Thread
Auto Trait Implementations§
impl Freeze for Thread
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)