Struct switchyard::threads::ThreadAllocationOutput[][src]

pub struct ThreadAllocationOutput {
    pub name: Option<String>,
    pub ident: usize,
    pub pool: Pool,
    pub stack_size: Option<usize>,
    pub affinity: Option<usize>,
}

Spawn information for a worker thread.

Fields

name: Option<String>

Name.

ident: usize

Identifier.

pool: Pool

Job pool index that the thread services.

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

impl Clone for ThreadAllocationOutput[src]

impl Debug for ThreadAllocationOutput[src]

impl PartialEq<ThreadAllocationOutput> for ThreadAllocationOutput[src]

impl StructuralPartialEq for ThreadAllocationOutput[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.