A thread-builder
struct Builder {
/* private fields */
}| Name | Description |
|---|---|
| new | Creates a new thread-builder. |
| Receiver | Name | Description |
|---|---|---|
&mut self | guard_size | Returns the size of the guard page at the end of the thread's stack. |
self | scoped | Spawns a new scoped thread. |
&mut self | set_guard_size | Sets the size of the guard page at the end of the thread's stack. |
&mut self | set_stack_size | Sets the size of the thread's stack. |
self | spawn | Spawns a new thread. |
&mut self | stack_size | Returns the size of the thread's stack. |
| Name | Description |
|---|---|
| Clone | Objects that can be duplicated. |
| Copy | Objects that can safely be copied via |
| MaybeClone | Objects that can be duplicated. |
| Pod | Objects that are safe to use if they contain a random bit pattern. |
This can be used to modify properties of the thread before spawning it.