pub struct Thread { /* private fields */ }Expand description
An OS thread handle.
The thread is joined and destroyed automatically when the handle is dropped.
Implementations§
Source§impl Thread
impl Thread
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Returns true if the thread has finished executing.
Sourcepub fn start(&self)
pub fn start(&self)
Starts the thread. Only meaningful for threads created with spawn_halted or Builder::halted.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Thread
impl !RefUnwindSafe for Thread
impl !Send for Thread
impl !Sync for Thread
impl !UnwindSafe for Thread
impl Unpin for Thread
impl UnsafeUnpin 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