Struct lrs::thread::Builder

A thread-builder

Syntax

struct Builder {
    /* private fields */
}

Static methods

NameDescription
new

Creates a new thread-builder.

Methods

ReceiverNameDescription
&mut selfguard_size

Returns the size of the guard page at the end of the thread's stack.

selfscoped

Spawns a new scoped thread.

&mut selfset_guard_size

Sets the size of the guard page at the end of the thread's stack.

&mut selfset_stack_size

Sets the size of the thread's stack.

selfspawn

Spawns a new thread.

&mut selfstack_size

Returns the size of the thread's stack.

Trait implementations

NameDescription
Clone

Objects that can be duplicated.

Copy

Objects that can safely be copied via memcpy.

MaybeClone

Objects that can be duplicated.

Pod

Objects that are safe to use if they contain a random bit pattern.

Remarks

This can be used to modify properties of the thread before spawning it.