pub struct ThreadAllocationOutput {
pub name: Option<String>,
pub ident: usize,
pub stack_size: Option<usize>,
pub affinity: Option<usize>,
}Expand description
Spawn information for a worker thread.
Fields§
§name: Option<String>Name.
ident: usizeIdentifier.
stack_size: Option<usize>Size of spawned thread’s stack. Will use system default if None.
affinity: Option<usize>Core index to pin thread to. If a platform doesn’t support affinity, will have no effect. Currently only windows and linux support affinities.
Trait Implementations§
Source§impl Clone for ThreadAllocationOutput
impl Clone for ThreadAllocationOutput
Source§fn clone(&self) -> ThreadAllocationOutput
fn clone(&self) -> ThreadAllocationOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadAllocationOutput
impl Debug for ThreadAllocationOutput
Source§impl PartialEq for ThreadAllocationOutput
impl PartialEq for ThreadAllocationOutput
impl StructuralPartialEq for ThreadAllocationOutput
Auto Trait Implementations§
impl Freeze for ThreadAllocationOutput
impl RefUnwindSafe for ThreadAllocationOutput
impl Send for ThreadAllocationOutput
impl Sync for ThreadAllocationOutput
impl Unpin for ThreadAllocationOutput
impl UnwindSafe for ThreadAllocationOutput
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