pub struct OwnedThread(_);
Expand description

Represents a handle to a thread.

Implementations

Tries to open thread by its id.

Returns the handle to the thread.

Safety

Do not close it until OwnedThread is in use.

Converts OwnedThread into inner HANDLE.

Returns the start address of the thread

Tries to suspend the thread. On success returns the previous suspend count.

Tries to resume the thread. On success returns the previous suspend count.

Returns the context of the thread. For more info see microsoft documentation

Sets the context for the thread. For more info see microsoft documentation

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.