Struct rayon_core::ThreadBuilder
source · pub struct ThreadBuilder {
name: Option<String>,
stack_size: Option<usize>,
worker: Worker<JobRef>,
stealer: Stealer<JobRef>,
registry: Arc<Registry>,
index: usize,
}
Expand description
Thread builder used for customization via
ThreadPoolBuilder::spawn_handler
.
Fields§
§name: Option<String>
§stack_size: Option<usize>
§worker: Worker<JobRef>
§stealer: Stealer<JobRef>
§registry: Arc<Registry>
§index: usize
Implementations§
Trait Implementations§
source§impl Debug for ThreadBuilder
impl Debug for ThreadBuilder
source§impl From<ThreadBuilder> for WorkerThread
impl From<ThreadBuilder> for WorkerThread
source§fn from(thread: ThreadBuilder) -> Self
fn from(thread: ThreadBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ThreadBuilder
impl !RefUnwindSafe for ThreadBuilder
impl Send for ThreadBuilder
impl !Sync for ThreadBuilder
impl Unpin for ThreadBuilder
impl !UnwindSafe for ThreadBuilder
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